vscode-json5 icon indicating copy to clipboard operation
vscode-json5 copied to clipboard

JSON schema support

Open keawade opened this issue 5 years ago • 5 comments

When using regular JSON, the vscode language features use a provided schema definition to enable intellisense to prompt with valid keys/values. These features don't work in JSON 5 files.

I think you might be able to leverage the existing VSCode extension from Microsoft to get these features in JSON 5: https://github.com/microsoft/vscode/tree/master/extensions/json-language-features

keawade avatar Feb 06 '20 16:02 keawade

also can see how "JSON with Comments" language service handles it.

jasonswearingen avatar Aug 08 '20 17:08 jasonswearingen

any updates on this?

stalniy avatar Mar 19 '21 10:03 stalniy

@stalniy if this is a blocking issue for you, you could switch to use "json with comments" which mostly works. that's what I did. I'll consider movign back to this extension if this feature gets added.

jasonswearingen avatar Mar 19 '21 15:03 jasonswearingen

Also in need of this feature.

ivands avatar Jan 17 '24 09:01 ivands

That would be great. Selecting jsonc works but complains about trailing commas.

I wonder if there is more luck in getting this into the fork of this extension (https://github.com/katjanakosic/vscode-json5) which is referenced in #11.

mschoettle avatar Sep 16 '24 16:09 mschoettle