New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[json] file schema loaded on client instead of server #83515
Comments
You don't need to type "file://" and the path must be relative to the project folder
It seems absolute paths are not supported yet. Maybe you can ask to add support for them |
Hey @Forlini91 what you're referring to is another way to reference schemas. |
We currently only support relative paths as shown here: |
I'm sorry @aeschli but you do support them and I'm surprised you don't know this already. It's even mentioned in other tickets (that's where I got the idea from). Please read my report above again and carefully. I'm not saying it's not working. I'm saying that even though the schema is loaded from the file, it still tries to go over the wire and throws an error because it can't. If it has the schema loaded already it should not be trying to go over the wire IMHO. This is just sloppy issue handling... |
Thanks for your investigations. |
To verify:
|
Issue Type: Bug
Due to issue #83469 I am trying to work around it until it gets fixed.
I found out that you can use file urls to point a particular schema to a local copy.
However, when I do, VSCode still insists on trying to download it over the wire.
The interesting thing is that if the path is not well formed and doesn't map to a real file, I get an error about the path. However, when the path is well formed and the file exists it just ignores it and goes over the wire instead...
This is my
json.schemas
section:Update: the schema does get imported, however it still tries to download it and raises "problems" for those files that the schema applies to.
VS Code version: Code 1.37.1 (f06011a, 2019-08-15T16:17:55.855Z)
OS version: Windows_NT x64 10.0.16299
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
oop_rasterization: unavailable_off
protected_video_decode: unavailable_off
rasterization: unavailable_off
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: disabled_off
webgl: enabled_readback
webgl2: enabled_readback
Extensions (39)
The text was updated successfully, but these errors were encountered: