streetsidesoftware / vscode-spell-checker

A simple source code spell checker for code
https://streetsidesoftware.github.io/vscode-spell-checker/
Other
1.45k stars 131 forks source link

enabledFileTypes `"*": false` does not function correctly #3836

Open kiweezi opened 1 week ago

kiweezi commented 1 week ago

I would like cspell to only check markdown files. So exclude all other file types / languages. But it seems setting "*": false is not supported.

Here's the configuration I am trying:

"cSpell.enabledFileTypes": {
        "markdown": true,
        "*": false
},

Ordering them differently in the list, or excluding the "*" item entirely also does not work.

This means all of the following configurations function the same as each other - they enable all file types to be checked:

"cSpell.enabledFileTypes": {
        "markdown": true,
        "*": false
},
"cSpell.enabledFileTypes": {
        "markdown": true,
        "*": true
},
"cSpell.enabledFileTypes": {
        "markdown": true
},

At the very least, I think this is not user friendly behavior, and is difficult to understand. I would love if this was fixed, so that I can use it as described at the start.

Versions

Jason3S commented 6 days ago

@kiweezi,

Please create a repo that shows it not working. It is not clear from your example what is happening.

Some things to know:

Note: some dictionaries will explicitly enable its file type. For those, you will need to add something like "al": false. Here is a list: search cspell-dicts.