microsoft / TypeScript-Sublime-Plugin

IO wrapper around TypeScript language services, allowing for easy consumption by editor plugins
Apache License 2.0
1.72k stars 235 forks source link

Plugin state is out of sync after few minutes of usage #761

Open maciej-zuk opened 3 years ago

maciej-zuk commented 3 years ago

After few minutes of using of the plugin it seems to lose synchronization with the LSP, highlights are misplaced and tooltips are wrong. image image Only restarting ST or using "Automatic package reloader" helps. Edit: Undo action doesn't help, it's stuck in wrong state.

trbrc commented 3 years ago

I keep running into this as well, and I've been looking for anything that resets the state for a file. I've tried things like closing and re-opening the file, renaming it, changing syntax, cutting the whole file content and pasting it back in, but the squigglies stay in the wrong place. Thank you @maciej-zuk for the suggestion to use AutomaticPackageReloader, that's the only thing that has worked so far.