-
Notifications
You must be signed in to change notification settings - Fork 29.2k
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] publish schema of the VS Code-specific JSON Schema extensions #81078
Comments
(Experimental duplicate detection)
|
These are really meant to be internal, for our settings editors. |
@aeschli I'm creating a JSON Schema to use with VS Code. (https://github.com/prbsparx/JsonSchemas/blob/master/k8s.networkpolicies.calico.json) I have the YAML extension from Redhat installed, and noticed that when I put in a string that doesn't match my pattern (e.g. IP Address regex) VS code says "string does not match pattern of " which is not friendly to me or my coworkers who will be using it. |
@aeschli, did I understand correctly that "defaultSnippets" is not even supported for the third-party extensions at the moment? Are there any workarounds to make it work, or do we need to wait for implementation in the VSCode itself? |
'defaultSnippets' and 'patternErrorMessage;' and others in JSON schemas can be defined by anyone, but is something that the VScode JSON language server invented. It only make sense to use within VSCode. Any extension that defined new configuration settings or contributes a JSON can use it, there are no limitations. |
@aeschli ok, great. Thank you for the quick response! |
Microsoft has extended JSON Schema 7.0 as part of VSCode. It would be great for Microsoft to publish a "VSCode JSON Schema" so that we can easily find all the available elements for our JSON Schemas.
Example extension that Microsoft did:
defaultSnippets
as mentioned at the bottom of https://code.visualstudio.com/Docs/languages/jsonThe text was updated successfully, but these errors were encountered: