You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Typing an import makes TS unresponsive for > 30s #20815
bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from postertypescriptTypescript support issuesverifiedVerification succeeded
Mohamed Hegazy (@mhegazy) Can you please take a look here? I don't see anything explicitly going wrong on the VSCode side, but the request queue lengths do quickly build up which I believe causes this behavior.
The reason the queues get so long may be getCodeFixes which starts out taking only a few ms but ends up taking 3.5 seconds plus in requests later on. I don't see any obvious causes in the TSS_LOGS for this
bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from postertypescriptTypescript support issuesverifiedVerification succeeded
Activity
mjbvz commentedon Feb 17, 2017
To investigate this, try collecting some logs from the TypeScript server when this occurs. Here's information on to do this using the TSS_LOG environment variable: https://github.com/Microsoft/TypeScript/wiki/Standalone-Server-%28tsserver%29#logging
From a command prompt, run:
Reproduce the problem in VSCode and then share the
.tslogfile.Let me know if you have any questions about this.
Thanks
jrieken commentedon Feb 20, 2017
I'd say this is the same as #18792. Matt Bierner (@mjbvz) Are you saying you don't see that?
alexdima commentedon Feb 20, 2017
Matt Bierner (@mjbvz) Here you go:
tslog.txt.tar.gz
Here is also a gif of me typing the import. The gif is not a loop, it eventually comes back ~50s later:

Please let me know if you encounter further difficulties in reproducing.
alexdima commentedon Feb 20, 2017
This is the TS version appearing in the status bar:
And here is the time it takes for tsserver to become responsive when pasting the import (~3s):
alexdima commentedon Feb 20, 2017
Notice how fast VS Code 1.8.1 is compared to the current insiders (~3s vs >50s):
sandy081 commentedon Feb 21, 2017
I also saw this slowness today. Intellisense and Diagnostics are very slow. I had to reload to get back to normal state
mjbvz commentedon Feb 21, 2017
Mohamed Hegazy (@mhegazy) Can you please take a look here? I don't see anything explicitly going wrong on the VSCode side, but the request queue lengths do quickly build up which I believe causes this behavior.
The reason the queues get so long may be
getCodeFixeswhich starts out taking only a few ms but ends up taking 3.5 seconds plus in requests later on. I don't see any obvious causes in the TSS_LOGS for thismjbvz commentedon Feb 21, 2017
Thanks everyone. Vladimir Matveev (@vladima) took in a fix on the TS side microsoft/TypeScript#14215 and I also checked in a workaround on our side 02006fe and c94be6c
alexdima commentedon Feb 22, 2017
Matt Bierner (@mjbvz) Vladimir Matveev (@vladima) Thanks a lot for the fix, tried it out in today's insiders. I really appreciate it 💯 🚀
fixes microsoft#20815. Workaround to not send code actions request if…