Hi there,
my colleagues (cc @otbe) and I have some problems with the TypeScript Language Server. The problem appeared maybe around one or two months ago. We experienced the same issue occasionally independent from each other and thought it was _our_ setup, before we actually noticed that multiple developers here had the same issue. We thought it would be fixed in one of the next VS Code (Insiders) appears, because we thought it must was introduced by an earlier update. But after some weeks and updates the error is still here. So I began looking for problems like ours in the issue tracker, but besides several "TypeScript Language Server is slow" issues I haven't found something which matched our problem.
So without further ado, here is the problem:
We experience what looks like that VS Code and the TypeScript Language Server become out-of-sync. This doesn't happen every time, but once an hour or so. The errors than look like this and we need to restart the TS server to fix them. We write something like abcde in VS Code, but the Language Server only sees abc.

Sadly we can't provide more information as we don't know why this happens 馃様
Steps to Reproduce:
Does this issue occur when all extensions are disabled?: Yes
Sounds like https://github.com/Microsoft/TypeScript/issues/25630
Are you using any typescript server plugins in your workspace?
Yes and no.
The picture is taken from a project wihtout any typescript server plugins but in other projects we use the typescript-styled-plugin.
How are you using the plugins? Through the VS Code extension or installed with npm?
Both I guess. It's added to our tsconfig.json, but some also use the VS Code extension for syntax highlighting 馃
Can you please try using vscode with this plugin fully disabled and check if you still see the issue?
I worked inside a project without typescript-styled-plugin yesterday and _think_ I haven't encountered the problem. But maybe it was just luck?
I experience the same problem. I was thinking that's due to the big and complex project but then it started to happen also in my other projects:

I've checked and disabled the plugin and extension, even in VSCode insider - still the same lag 馃槙
Can I enable some verbose log or profiler to dump some info for you to debug?
Is your problem a (more or less) constant lag, but which resolves after some delay? Because our out-of-sync problems stay no matter how long we wait. It doesn't recover from itself, only be restarting the service or when we start typing more it eventually gets in-sync again.
@donaldpipowitch Yes, it's bigger or smaller but it's a constant lag. Sometimes it hangs for too long so I have to do CTRL + A, CTRL + X and CTRL + V combination to force checking whole file again and then the red errors comes away.
I also have launched npx tsc --noEmit --watch parallel in terminal and it's working super fast, only VSCode presenting is laggy.
I am also having lag problems similarly described. TS Version 3.0.3, VSCode 1.27.1 (just updated to .2, can test again soon)
I noticed the problem is mitigated when I disable vscode-styled-components plugin, but I have a feeling that only alleviates a more general problem. Happy to provide more info if needed.
Same with my coworkers, too. We don't have a _huge_ codebase but we have a decent amount of files and types.
Here's a recorded instance of this happening. As you can see, the storedChannelsKey _is_ being used, but TS doesn't think it is. The thisthis errors reported aren't present in my code, but they were before I deleted a period or two.
Everything goes back to normal if I "wake it up" by typing and deleting a space, saving the file, formatting the document, etc.
Thanks for the additional information. I'm pretty sure this has the same root cause as https://github.com/Microsoft/TypeScript/issues/25630
We are investigating upstream
Looks like it's resolved on TS side:
https://github.com/Microsoft/typescript-template-language-service-decorator/commit/387cd5cee6a9c086dc6c887b81c6034781f8fc76
Can't wait for a patch release... using VSCode with TS became a nightmare recently in bigger projects.
I updated the TS plugin today and everything looked good 鈾ワ笍
For verification:
Most helpful comment
Here's a recorded instance of this happening. As you can see, the
storedChannelsKey_is_ being used, but TS doesn't think it is. Thethisthiserrors reported aren't present in my code, but they were before I deleted a period or two.Everything goes back to normal if I "wake it up" by typing and deleting a space, saving the file, formatting the document, etc.