dotenv-org / dotenv-vscode

Add auto-cloaking, auto-completion, in-code secret peeking, and more to VSCode.
https://dotenv.org/vscode
MIT License
77 stars 11 forks source link

[Bug] automatically change the "files.associations" #107

Open stimw opened 8 months ago

stimw commented 8 months ago

I have a .vscode/settings.json in my workspace:

// (workspace) .vscode/settings.json
{
    "files.associations": {
        "*.css": "postcss",
    },
}

but In my user settings.json, I didn't set the file associations:

// (user) settings.json
{}

Then if I enable the dotenv-vscode extension, it automatically adds file associations including "*.css": "postcss" into my user settings.json:

// (user) settings.json
{
    "files.associations": {
        "*.css": "postcss",   // this should not be auto added here
        ".env*": "dotenv",
    },
}

I have to disable this extension now

stimw commented 7 months ago

I think this PR resolved the problem: https://github.com/dotenv-org/dotenv-vscode/pull/105#issue-2118492181

not sure what stops it from being merged