streetsidesoftware / vscode-spell-checker

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

Disabling forbidden words #3810

Closed nloomans closed 3 days ago

nloomans commented 3 days ago

I'm having the same issue as #2452, where (among others) the word "Warnings" is marked as as a forbidden word. Using the cspell trace command I was able to trace this down to the nl-nl dictionary:

$ npm install -g @cspell/dict-nl-nl
$ npx cspell link add @cspell/dict-nl-nl
$ npx cspell trace --locale en,nl-NL Warnings
Word     F Dictionary           Dictionary Location
Warnings - [flagWords]*         From Settings `flagWords`
Warnings - [ignoreWords]*       From Settings `ignoreWords`
Warnings - [suggestWords]*      From Settings `suggestWords`
Warnings - [words]*             From Settings `words`
[...]
Warnings ! nl-nl*               node_modules/@cspell/dict-nl-nl/Dutch.trie.gz
[...]

How do I disable this forbidden word? Adding it to cSpell.userWords does not resolve this cSpell error.

Jason3S commented 3 days ago

Add it to cSpell.ignoreWords. It is used to ignore flagged words.

nloomans commented 3 days ago

@Jason3S Perfect, that did the trick. Thanks!