redhat-developer / redhat-developer/vscode-yaml

modifySchemaContent does not update the linter

Open
#1,062 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
830
Forks
260
Avg merge
5h 43m
Merged PRs (30d)
1

Description

Describe the bug

When using the modifySchemaContent it update the schema but does not validate the file with the new values added to the schema.

Expected Behavior

When calling the modifySchemaContent the linter squiggles should update validating the new values.

Current Behavior

The linter continues with the squiggles even though the values are valid.

Steps to Reproduce

  1. YAML file using an enum value that is not valid
  2. call modifySchemaContent and add the value
  3. Check that the value is still not valid

Environment

  • Windows
  • Mac
  • Linux
  • other (please specify)
    ALL

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Search for the modifySchemaContent entry point and trace how schema changes reach linter diagnostics. Reproduce the enum-value case from the issue, then verify that adding the value removes the existing squiggle and add or update coverage if the relevant test location is found.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.