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
VSCode Typescript Intellisense slows to crawl after 5-10 minutes #18774
VSCode Version: Insiders Version 1.9.0-insider (1.9.0-insider) 39d761b
OS Version: macOS Sierra 10.12.2 (16C67) (2013 rMBP, i7, 16GB RAM, 1TB SSD)
Steps to Reproduce:
Open large Angular (2.4.3) project and after a while (5-10 minutes) intellisense slows down to a crawl taking 5-15 seconds to generate. If you force it (ctrl + space?), it'll sit for a while with "Loading..."
Disabled most addons, only have:
Angular VS Code TypeScript and HTML Snippets
Angular Language Service (installed after this started happening)
Auto-Open Markdown Preview
Bootstrap 3 Snippets
Enabled.
I disabled other addons such as C#/Ionide-fsharp/etc.
Reacted by Steven Sojka, Maksim Popov and RobertYoung
changed the title [-]VSCode Intellisense slows to crawl after 5-10 minutes[/-][+]VSCode Typescript Intellisense slows to crawl after 5-10 minutes[/+]on Jan 19, 2017
I figured out it was because I was opening the whole of our product's code base folder, which includes C# .NET Core/CoreCLR projects etc.
If I open just the Angular 2 sub folder performance is better, however I still notice that VS Code's background processes (Code - Insiders Helper) can sometimes get stuck and eat up CPU causing my MBP's fan to spin up. I force quit them and it's fine.
I have noticed this on a large Angular project. 1.8 was lightning fast with intellisense. 1.9 is taking about 6-10 seconds for just simple autocomplete. It's becoming almost unusable. I can provide any information needed to help resolve this issue.
I have noticed this on a large Angular project. 1.8 was lightning fast with intellisense. 1.9 is taking about 6-10 seconds for just simple autocomplete
Same here. 1.9 looks very slow, waiting for simple import statement autocomplete from 3 to 10 seconds. 1.8 was faster (but reaches 1.4Gb memory usage in 1-2 hours and crash Intellisense process)
Thanks. I believe this is a duplicate of #20815. TypeScript has a fix on their side and I also just checked in a fix on the VSCode side. Try out tonight's insiders build and let me know if you still see this
Activity
[-]VSCode Intellisense slows to crawl after 5-10 minutes[/-][+]VSCode Typescript Intellisense slows to crawl after 5-10 minutes[/+]philjones88 commentedon Jan 25, 2017
I figured out it was because I was opening the whole of our product's code base folder, which includes C# .NET Core/CoreCLR projects etc.
If I open just the Angular 2 sub folder performance is better, however I still notice that VS Code's background processes (
Code - Insiders Helper) can sometimes get stuck and eat up CPU causing my MBP's fan to spin up. I force quit them and it's fine.steelsojka commentedon Feb 7, 2017
I have noticed this on a large Angular project. 1.8 was lightning fast with intellisense. 1.9 is taking about 6-10 seconds for just simple autocomplete. It's becoming almost unusable. I can provide any information needed to help resolve this issue.
artaommahe commentedon Feb 8, 2017
Same here. 1.9 looks very slow, waiting for simple
importstatement autocomplete from 3 to 10 seconds. 1.8 was faster (but reaches 1.4Gb memory usage in 1-2 hours and crash Intellisense process)mjbvz commentedon Feb 8, 2017
VSCode 1.9 upgraded the bundled TypeScript version for 2.1.4 to 2.1.5. Perhaps there was a performance regression.
If you are seeing this problem in 1.9, please provide the following information to help us investigate:
typescript.tsdksetting? If you are, which version of TypeScript are you using?jsconfig/tsconfigfile and what does it look like?Collect TSServer Traces
"typescript.tsserver.trace": "verbose"TypeScriptsection.Collect TSServer Logs
If you're feeling up to it, this log would be very helpful as well
TSS_LOGlog environment variable$export TSS_LOG="-level verbose -file /Users/${username-whoami`}/tss.log"TSS_LOGset, by running$ codefor exampletss.logfileBoth the TypeScript trace and TSS_LOG files may contain the contents of source files and full path names.
You can also try downgrading to TypeScript 2.1.4 by following these instructions
Thanks
artaommahe commentedon Feb 10, 2017
Matt Bierner (@mjbvz)
Does not help.
Enabled tracing, opened vscode, wrote
pressed
Ctrl + Spacein brakets to autocomplete import,page-module/core/modulehas only one exported variable (with ~20 imports)http://pastebin.com/5PN9Amyw
http://pastebin.com/xh8tjYW2
A lot of 10-30s requests
cant find how to set up logging, this does not create log file or write anything to created one
$ TSS_LOG="-level verbose -file /home/drow/temp/vscode-slow-issue/tsserver.log" $ codenope
http://pastebin.com/ZdwtEaSL
cant share, ~60k loc angular 2 app, one tsconfig
Ubtuntu 16.04, VSCode Version 1.9.1
Currently rollback to 1.8.1, same things works instant or 2-3s max instead of 20-30s with 1.9.x.
mjbvz commentedon Feb 22, 2017
Thanks. I believe this is a duplicate of #20815. TypeScript has a fix on their side and I also just checked in a fix on the VSCode side. Try out tonight's insiders build and let me know if you still see this
artaommahe commentedon Feb 23, 2017
Matt Bierner (@mjbvz) last insiders build works well, like 1.8, thx )