-
Notifications
You must be signed in to change notification settings - Fork 30k
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] use the schemastore catalog #26289
Comments
@aeschli, what is the status here? |
Schema associations can be set in the user settings and and by extensions. But we're not defaulting to the http://schemastore.org/api/json/catalog.json settings yet. No progress yet. |
@aeschli, thanks. |
After having such a great experience with most JSON files, and using this feature with the YAML language server, I was just wondering why a certain schema I added to SchemaStore wouldn't be used automatically without |
Hello @aeschli I would like to contribute a patch based on the work already done on yaml-language-server project here https://github.com/redhat-developer/yaml-language-server/blob/master/src/server.ts#L269-L302 First, are you ok with my proposal. If so how can I test my work. I don't see any information on how launch the server and connect my vscode on it. |
In fact, I should read the main README of this repository. I will come back soon. |
Yes, help is welcome, it would be great if you can give it a try. I'm worried that there will be wrong associations to certain files with common file names. That will lead to misleading code completions, hovers, and even validation errors. We need an easy way for users to disable automatic associations on such files. |
I give a try this week. I hope I will find time during lunch time. I agree with you about the user settings. There are more important than automatic settings from the catalog. However I don't understand the extensions part of your message. Which extensions are you refering to? For wrong association, I think we can create a settings like in the yaml-language-server. "json": {
// other settings like format and schemas associations
"schemaStore": {
"enable": true
}
} If the schemastore is disabled, we don't use the catalog to create associations between files and schemas. This mecanism can also be extended by another key in |
Should installed Extensions exposing: contributes.jsonValidation have precedence on schemas coming from the SchemaStore? |
Yes, schemas from the schema store should only be used if there's no association (as a fallback) |
So many times schemas seem to "just work"™, that it's not really obvious at times why it does not. It's hard to realize that they are often provided by extensions. I just got hit by this issue when I was confused by Is there any work done here currently? #69132 seems to have stalled 😥 |
This seems like basic functionality that should work out of the box? Is anything happening with this? |
The JSON server should use http://schemastore.org/api/json/catalog.json for schema associations
The text was updated successfully, but these errors were encountered: