vscode-spell-checker icon indicating copy to clipboard operation
vscode-spell-checker copied to clipboard

Extension doesn't get disabled in some file types when using `cSpell.enabledLanguageIds`

Open dalbitresb12 opened this issue 1 year ago • 5 comments

Hi! Thanks for the awesome work with this extension.

I'm trying to only enable the spell checker on specific file types (e.g. Markdown, Plain Text, Latex and other non-code files but not TypeScript, Python, etc). I've tried using cSpell.enableFiletypes to manually disable each file type I don't want checked, but I can't find a way to not have to list every language with a ! at the start to disable it. I've tried using !* but it doesn't seem to work (or it's not implemented).

I've also tried only listing specific language ids using cSpell.enabledLanguageIds. Using this option does disable the extension in most of the file types, but it doesn't for some. For example, the extension still shows suggestions when using Dart, so I've had to disable it manually with cSpell.enabledLanguageIds.

My current settings look like this:

{
  "cSpell.checkOnlyEnabledFileTypes": true,
  "cSpell.enabledLanguageIds": [
    "git-commit",
    "git-rebase",
    "latex",
    "markdown",
    "plaintext",
    "restructuredtext",
    "scminput",
    "text"
  ],
  "cSpell.enableFiletypes": [
    "!dart"
  ],
}

I'm not sure if #1893 is related to this issue, but I'm linking it anyways because I get the same result in the UI and I still get suggestions if I don't disable Dart with cSpell.enableFiletypes as you can see in the following screenshots.

User preferences

User preferences showing Dart is disabled

Workspace preferences

Workspace preferences showing Dart is also disabled

File preferences

File preferences showing Dart is somehow enabled

dalbitresb12 avatar May 30 '23 22:05 dalbitresb12