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

Extension keeps crashing, the json schema doesn't show.

Open ImadYIdrissi opened this issue 10 months ago • 0 comments

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

Current Behavior

The JSON schema keeps disappearing.

Steps to Reproduce

  1. In .vscode.json Add the following yaml.schemas entry:

    {
    
        "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"
            ]
        },
    }
    
  2. In your workspace, find a .yml file and try to autocomplete something like 'freshness' Image

  3. It works, the schema shows, but it will occasionally disappear. Image Image

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.

ImadYIdrissi avatar Dec 09 '24 23:12 ImadYIdrissi