Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension config inside devcontainer.json is ignored #1010

Open
red8888 opened this issue Feb 27, 2024 · 0 comments
Open

Extension config inside devcontainer.json is ignored #1010

red8888 opened this issue Feb 27, 2024 · 0 comments

Comments

@red8888
Copy link

red8888 commented Feb 27, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant