vscode-yaml
vscode-yaml copied to clipboard
Extension keeps crashing, the json schema doesn't show.
Extension keeps crashing, the json schema doesn't show.
I am trying to set-up autocomplete for my dbt project by adding a json-schema validator in my settings. Except the JSON schema associated with my file keeps disappearing, and to make it come back I have to uninstall your YAML extension, reload the workspace and reinstall the YAML extension.
Expected Behavior
I should see the schema in my bottom-right corner.
Current Behavior
The JSON schema keeps disappearing.
Steps to Reproduce
-
In
.vscode.jsonAdd the followingyaml.schemasentry:{ "yaml.schemas": { "https://raw.githubusercontent.com/dbt-labs/dbt-jsonschema/main/schemas/latest/dbt_yml_files-latest.json": [ "/**/*.yml", "!profiles.yml", "!dbt_project.yml", "!packages.yml", "!selectors.yml", "!profile_template.yml", "!package-lock.yml" ], "https://raw.githubusercontent.com/dbt-labs/dbt-jsonschema/main/schemas/latest/dbt_project-latest.json": [ "dbt_project.yml" ], "https://raw.githubusercontent.com/dbt-labs/dbt-jsonschema/main/schemas/latest/selectors-latest.json": [ "selectors.yml" ], "https://raw.githubusercontent.com/dbt-labs/dbt-jsonschema/main/schemas/latest/packages-latest.json": [ "packages.yml" ] }, } -
In your workspace, find a .yml file and try to autocomplete something like 'freshness'
-
It works, the schema shows, but it will occasionally disappear.
P.S the file association may say "Jinja YAML", but it also happens when the file association is set to "YAML"...
Environment
- WSL, Ubuntu 22.04 on windows 11 Pro.