swyphcosmo / vscode-spellchecker

Spell check extension for Visual Studio Code
MIT License
16 stars 10 forks source link

Ignoring words not persistent between restarts #43

Closed aleksandarristic closed 4 years ago

aleksandarristic commented 7 years ago

Ignored words, both 'Ignore' and 'Always ignore', are not persistent between editor restarts. Whenever I ignore a word it works perfectly fine while the editor is open. But every time I restart the editor, all the ignored words are marked as spelling errors again.

I'm using a mac for what it's worth. I'd be happy to provide you with any additional info needed to debug and solve this issue.

jmakeig commented 7 years ago

In my experience, the “Always Ignore” words are added to my spellchecker.ignoreWordsList array in my user preferences. Thus they are persistent. I can’t figure out what the logic is for simple “Ignore”. Even within the same editing session, this list seems to be forgotten intermittently.

swyphcosmo commented 7 years ago

'Ignore' is intended to save the word to your workspace settings while 'Always Ignore' will add the word to your global user settings file. On Windows, the workspace settings are stored in workspace directory/.vscode/settings.json. I imagine that the file is in a similar location on macOS. If this file is removed for some reason, the dictionary additions will be removed.

Try to track down this file, and let me know if you see any additional issues with it.