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

Add jinja-yml support for YAML json schemas.

Open ImadYIdrissi opened this issue 10 months ago • 2 comments

Add jinja-yml support for YAML json schemas.

Autocomplete and JSON schema works correctly for YAML file association but not for Jinja-yml

Describe the solution you would like

When using this JSON schema with my YML files,

    "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"
        ]
    },

it is correctly integrated

Image

When trying to do the same with jinja-yaml, it isn't available. Image Image

In fact I think it kind of crashes the extension. See this issue.

ImadYIdrissi avatar Dec 09 '24 23:12 ImadYIdrissi