redhat-developer / redhat-developer/yaml-language-server
Use cached remote json schema in offline situations
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.5k
- Forks
- 352
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 11
Description
Is your enhancement related to a problem? Please describe.
When editing a yaml files which uses a remote json schema, the schema is loaded and works well when I'm online.
However, during unstable uplinks or offline situations, I only get the error Unable to load schema from https://....
Describe the solution you would like
#878 describes that json schemas are cached locally. The local cache should be used in offline situations.
A warning could still be displayed, but with the additional hint that the cached version is used instead.
Describe alternatives you have considered
None.
Additional context
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read issue #878 first to understand the existing local JSON schema cache, then trace the schema-loading path for remote URLs. Verify that offline or unstable connections use the cached schema and that any warning explains the fallback.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100