vscode-yaml
vscode-yaml copied to clipboard
Allow to disable schema validation for certain file patterns
Some YAML files are valid but cannot be validated using a regular YAML schema because they contain jinja content, for example.
It makes it quite annoying to work with YAML file with VSCode and no real alternatives YAML plugin and LS exist so far.
For background, I have collected a few related GH issues:
- https://github.com/redhat-developer/vscode-yaml/issues/665
- https://github.com/redhat-developer/vscode-yaml/issues/245
- https://github.com/redhat-developer/vscode-yaml/issues/298
- https://github.com/redhat-developer/yaml-language-server/issues/220
- https://github.com/redhat-developer/vscode-yaml/issues/812
I can see two options to fix that:
- Option 1: "somehow" allows the YAML validator to either validate or ignore jinja content.
- Option 2: allow a user to disable YAML validation in VSCode for specific files or file patterns.
Is there any option on the plugin to stop highlighting of jinja as an error ?
this would be highly desirable.