streetsidesoftware / vscode-spell-checker

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

CSpell "problems" not cleaned after closing file [intermittent] #3692

Open alexolog opened 1 month ago

alexolog commented 1 month ago

CSpell complained on misspellings in the user settings.json.

After closing the file, the messages remained:

image

I expected them to be cleared.

The interesting part is that the issue is intermittent. Right now I have 2 vscode instances running concurrently, and it only happens in one of them.

Jason3S commented 1 week ago

@alexolog,

This is was caused by a change in behavior by VS Code. VS Code still has the files open in the background, even though there isn't an open editor.

If you use version 4 and enable the setting cSpell.useCustomDecorations, this problem will go away.

Jason3S commented 5 days ago

VS Code opens files in the background. When it opens the files, it triggers the spell checker.

There are two work arounds:

  1. Use custom decorations: cSpell.useCustomDecorations image

    The spell checker will handle rendering issues and files opened by VS Code in the background will not show up.

  2. The Spell: Toggle Show Spelling Issues, Spell: Show Spelling Issues, and Spell: Hide Spelling Issues commands can be used to show/hide spelling issues. Using these command will clean up and left over issues in the problem pane. image