-
-
Notifications
You must be signed in to change notification settings - Fork 134
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
enabledFileTypes "*": false
does not function as expected
#3836
Comments
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 |
The VSCode CSpell extension (aka "code-spell-checker") 4.0.19 release (2024-11-19) changed the `enabledFileTypes` setting default to make it "easier to extend." The change also made CSpell check all words in all code files, resulting in a noticeable increase in spell check errors reported by the extension. The `"cSpell.enabledFileTypes": { "*": false }` setting suggested in streetsidesoftware/vscode-spell-checker#3800 does not work correctly (streetsidesoftware/vscode-spell-checker#3836). Languages must be configured individually. This commit will update `cspell.json` to configure common code languages. - Ruby is disabled to avoid checking commented-out lines in Brewfiles. - Excluding HTML from the `languageSettings` array will allow CSpell to check not only comments, but also prose elements like `<p>`. It's not clear how to also check prose elements in JavaScript components. - When checking Astro, Vue, and other component languages, CSpell should check HTML, CSS, and JS comments. All may occur in a single file. - When checking shell, CSpell should ignore array length references (in Bash, the length of an array can be read with `${#ARRAY_NAME}`). - CSpell still seems to be spell checking keys in VSCode `settings.json` even though JSONC is correctly configured to only check comments. https://cspell.org/configuration/ https://github.com/streetsidesoftware/vscode-spell-checker/releases/tag/code-spell-checker-v4.0.19
I still have the problem that
But spellchecking is performed for a Julia source file ( This setting seems to be very unstable, because I remember it didn't work when it was introduced, then after some update it worked until a few days ago, where it stopped working again. |
This is related to: [enabledFileTypes "*": false does not function correctly](streetsidesoftware/vscode-spell-checker#3836 (comment))
"*": false
does not function correctly"*": false
does not function as expected
There are a few dictionaries that have the legacy setting: Here are the dictionaries: If you add them to your list, it should take care of the issue.
|
Thanks @Jason3S, this makes sense now! Just to be sure, you mean until the dictionaries are turned off by default, I need to add |
Related to #3836 Removes the last of the defaults.
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:
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:
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
The text was updated successfully, but these errors were encountered: