-
Notifications
You must be signed in to change notification settings - Fork 74
Description
Background
Currently the VS Code YAML extension provided by RH - https://github.com/redhat-developer/yaml-language-server uses the schemas stored in the schema store https://www.schemastore.org/json/ to provide YAML linting.
Work
It would be nice to have our devfile v2 schema onboarded to https://github.com/SchemaStore/schemastore/blob/master/src/api/json/catalog.json. We should ensure that the devfile v1 and v2 can coexist and their corresponding linting applied as per the devfile version.
Until then the workaround is to overwrite it in the YAML extension settings manually:
Stretch Goal
Ideally, we would also like to provide semantic validation with the extension. Since these semantic validation are not enforced by the schema validation, it is not covered by the existing extension. We should research if this can be adopted in the current extension repo or if a new VS Code extension is to be developed for providing such UX.