I'm developing a JSON schema and referenced it for tests in another project.
When I edit the JSON schema, changes are not applied until I reload the window in other project.
Go into File > Preferences > Settings, search for JSON and find the following setting: JSON > Schema Download: Enable
If you toggle that off and on VS Code will grab the latest version of the schema files.
Very quick workaround to force vs code to reload the file: add a dummy parameter at the end of the schema url, e.g.
{"$schema": "file:///home/user/foo.json"}
becomes
{"$schema": "file:///home/user/foo.json?dummy=1"}
For yaml files:
# yaml-language-server: $schema=file:///home/user/foo.json?dummy=1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With