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

Hide issue while typing line have no effect when not using custom decorations

Open memeplex opened this issue 9 months ago • 5 comments

Maybe I don't understand how this new feature is supposed to work, but if I, say, I'm typing:

This is a wrrrrong

I get all the underlining, the report in the problems and the spell checker views, as soon as I type wrrrr.

The setting is "cSpell.hideIssuesWhileTyping": "Line".

The extension version is v4.0.40.

memeplex avatar Mar 14 '25 12:03 memeplex

@memeplex,

The idea is to only show issues after you have stopped typing. The Word setting should be for the word, the Line setting should be for the full line.

The default timeout is 1500, set by cSpell.revealIssuesAfterDelayMS, is used to determine if you have stopped typing.

I know it works at the word level. I'll double check the Line setting.

Jason3S avatar Mar 14 '25 15:03 Jason3S

I just checked. It only works if you are using cSpell.useCustomDecorations. I'll see how to make it work using the VS Code diagnostics.

Jason3S avatar Mar 14 '25 15:03 Jason3S

Ah ok, is it more resource intensive to use custom decorations, for example more regex matching or something like that?

memeplex avatar Mar 14 '25 16:03 memeplex

Ah ok, is it more resource intensive to use custom decorations, for example more regex matching or something like that?

The challenge was getting it to look good across all operating systems. It uses CSS text-decoration for the drawing, but it isn't consistent in how it is displayed.

For settings, see: Appearance Settings.

There doesn't seem to be any performance issues.

Jason3S avatar Mar 16 '25 09:03 Jason3S

It would be ideal if this worked without enabling custom decorations. In some contexts such as the SCM commit message panel custom decorations don't work and it's annoying to have the results in the "Spell Checker" bottom panel constantly changing as I type.

diminutivesloop avatar Apr 14 '25 21:04 diminutivesloop