redhat-developer / redhat-developer/vscode-yaml

Cannot clear cache

Open
#915 4 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Describe the bug

Whatever I do, I cannot clear the cache referencing a schema on yaml.schemas

Expected Behavior

schema file path should be updated

Current Behavior

Current behaviour is simple: once you setup a schema for a specific filename in yaml.schemas, it's impossible to remove it. I tried to reload the window, clear cache, clear history, restart vscode or even the computer itself, it doesn't solve the issue: the yaml file is still "ghost-referencing" a schema that doesn't exist anymore anywhere on my computer.

If a rename the file (not the schema) it's working again since it's not referencing the "ghost-referencing" schema, which I obviously removed long time ago

Steps to Reproduce

  1. add a reference to a schema in yaml.schemas
  2. remove it
  3. clear cache, reload the window, clear history, restart vscode
  4. vscode is still referencing the schema

Environment

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

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

Reproduce the issue on Linux by adding and then removing a schema entry in yaml.schemas, followed by the reload and restart steps listed. The payload names no source file, test, or entry point, so trace the schema-reference and cache handling from the configuration path; done means the removed schema is no longer referenced without renaming the YAML file.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.