coc-yaml icon indicating copy to clipboard operation
coc-yaml copied to clipboard

`yaml.selectSchema` command should have "no schema" as an option

Open jackieli-tes opened this issue 2 years ago • 5 comments

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

jackieli-tes avatar Mar 30 '22 10:03 jackieli-tes

In the meantime, is there a way to set "no schema" manually, without disabling the schema store or coc-yaml?

stanislav-zaprudskiy avatar Jun 21 '22 07:06 stanislav-zaprudskiy

@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.

simnalamburt avatar Jun 28 '22 16:06 simnalamburt

Is there a way to disable this extension based on file type?

luisdavim avatar Aug 11 '22 12:08 luisdavim

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

lmburns avatar Jan 03 '23 22:01 lmburns

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.

luisdavim avatar May 18 '24 12:05 luisdavim