microsoft / vscode-spell-check

An extension to VSCode for spell and grammar checking.
MIT License
105 stars 38 forks source link

Spell check does not show latest evaluation sometimes #32

Closed Tyriar closed 8 years ago

Tyriar commented 8 years ago

I'm assuming there is a race condition where occasionally the character before the last one typed is evaluated afterwards. Perhaps a debounce function would fix?

image

seanmcbreen commented 8 years ago

I added in a debounce - there will inherently always be some lag unfortunately (I could check on idle as well but that seams invasive).

yzhang-gh commented 8 years ago

It is not solved until now. Why not evaluate one more time if I stop tying for a relatively long time (e.g. 2 seconds)?

bug

seanmcbreen commented 8 years ago

Yay :)

yzhang-gh commented 8 years ago

@seanmcbreen Eh.. now I think you could add a keyboard shortcut to force revaluation. I think that's a really good solution. :dizzy_face: