redhat-developer / vscode-yaml

YAML support for VS Code with built-in kubernetes syntax support
MIT License
652 stars 221 forks source link

Extension config inside devcontainer.json is ignored #1010

Open red8888 opened 7 months ago

red8888 commented 7 months ago

I have this in my .devcontainer/devcontainer.json:

{
    "name": "test",
    "build": {
        "dockerfile": "Dockerfile",
        "context": ".."
    },
    "customizations": {
        "vscode": {
            "settings": {
                "yaml.format.enable": true,
                "yaml.schemas": {
                    "./my_schema.json": "*.yaml",
                },
                "yaml.maxItemsComputed": 80001
            },
            "extensions": [
                "redhat.vscode-yaml"
            ]
        }
    }
}

This does not work. When the dev container launches non of those settings are applied. I have to put those settings in a .vscode/settings.json file for the extension to use them.

I have not seen this with other extensions before, they all seem to pick up settings defined in devcontainer.json without issues.