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

Extension config inside devcontainer.json is ignored

Open red8888 opened this issue 1 year ago • 1 comments

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.

red8888 avatar Feb 27 '24 20:02 red8888