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

Feature request: Add userIgnoreWords

Open throwaway96 opened this issue 1 year ago • 1 comments

This extension is helping me catch a ton of typos. But I'm not a huge fan of the way the settings work (which I realize is mostly due to VS Code).

I want to be able to have an ignore list that combines words from my User and Workspace settings.

As I understand it, a Workspace setting will always overwrite a User setting of the same name. So if I have cSpell.ignoreWords in my Workspace settings file, cSpell.ignoreWords in my User settings file is effectively ignored. Ideally, I'd like all of the lists to just be merged, but I realize that's not possible with VS Code (#2679).

Therefore, I'd like to see a userIgnoreWords setting. Its contents would be merged with those of ignoreWords. Like userWords, it would be for the User settings file only.

I did look into cspell.json, and it seems like that could potentially do what I want. This section seems to imply this list would be merged with whichever list came from the VS Code settings. Would I just put something like this in cspell.json?

{
  "ignoreWords": {
    "abc",
    "def"
  }
}

Still, I'd rather not need an extra file. I'd really appreciate it if you could consider adding cSpell.userIgnoreWords or something like it.

throwaway96 avatar Feb 19 '24 03:02 throwaway96

For consistency perhaps userFlagWords could be added.

Anyway, notice that by way of extending instead of overriding lists it's possible to end up with conflicting sets of allowed, ignored and flagged words.

memeplex avatar Mar 03 '24 19:03 memeplex