coc-yaml
coc-yaml copied to clipboard
`yaml.selectSchema` command should have "no schema" as an option
Quite often than not, automatic schema selection selections the wrong schema and errors littered every where. yaml.selectSchema
action should provide a "no schema" option
In the meantime, is there a way to set "no schema" manually, without disabling the schema store or coc-yaml?
@stanislav-zaprudskiy Here you are:
"yaml.schemas":{
"https://gist.githubusercontent.com/simnalamburt/2c3263b783ed3f4471bda9ca901bb69f/raw/9c2cd17d6f4683cf80b6360a2d53b33fd49556d7/allow-all-json-schema.json": "/*"
},
It uses accept-all json schema as default schema.
Is there a way to disable this extension based on file type?
Perhaps there could be something added to a file like any of the following to support the 'no schema' files:
# yaml-language-server: $schema=none
# yaml-language-server: $schema=nil
This could help https://github.com/neoclide/coc-yaml/issues/78 and use https://github.com/mrjosh/helm-ls for helm charts instead of the yaml-language-server.