Repository navigation
Description
- VSCode Version: 1.25.0-insider
- OS Version: Windows 10 1709
Steps to Reproduce:
- Type Character
- CTRL-SPACE to auto-complete
- Go Eat lunch
- Continue work
Does this issue occur when all extensions are disabled?: Yes
I have seen many other issues here opened about this problem but they all seem to get closed in some way or another. I cannot be the only one experiencing the broken-ness of Intellisense.
I am working in a JavaScript project that is not small on a very strong machine. When I first launch VSC if I let the editor rest a bit (perhaps index reading, not sure) then Intellisense works very well. After a bit of work in the editor (sometimes immediately but often a few minutes of bliss) the dreaded loading... indicator is all I get. I can wait from anywhere between 30s and 90s and the window does eventually appear. It's worth saying this is not progressive -- meaning once it goes south it never takes less than 30s.
During this time there are not other large processes running to spike the CPU. This seems to really be within VSC itself.
It is also worth noting that there are times when if I let it complete it's loading cycle it starts working at normal speed again for a bit. This usually does not last long (2m) but it does happen.
I am willing to get the "intelli" part disabled if at least macros and auto-complete for local values worked. Any way to limit what it was trying to look through to present the feature.
Activity
jacobweber commentedon Jul 6, 2018
Seeing this after updating from 1.24.1 to 1.25.0 on Mac. Downgrading to 1.24.1 fixes it.
TungJerry commentedon Jul 17, 2018
I have same issue after updating to 1.25.0 on Mac.
thaiihuy commentedon Jul 18, 2018
I have same issue after updating to 1.25.0 on Window. Try to downgrade VSCode
mjbvz commentedon Jul 19, 2018
Using VS Code insiders, please try collecting the TS Server log:
"typescript.tsserver.log": "verbose",TypeScript: Open TS Server logcommandtsserver.logfile in itLook through that log file for errors or stack traces. If you can share the log, I can also take a look to see if anything stands out
espenbjorkeng commentedon Jul 25, 2018
Same behaviour here.
Intellisense is fast immediately after restart, but after a while (30 minutes or so, maybe less) I always have to press
CTRL + SPACEand wait a second or two before snippets and other suggestions appear.Windows 10
Version: 1.25.1
mitchelldemler commentedon Jul 27, 2018
Same here on Windows 10, v1.25.1. Co-workers experiencing the same thing.
Possibly the same issue, but it also hangs when we press F12 (Go to definition) in our Typescript project. Takes anywhere up to 30s to find.
I'm going to try downgrading to 1.24.1 until this is resolved as 1.25.1 is unusable at the moment.
(For anyone else struggling to find the 1.24.1 Windows x64 download).
From Logs:
Not sure if relevant, but every time I open a file in the editor, the logs say that ~661 files are affected. I'm not sure if this is normal?
luchsamapparat commentedon Aug 10, 2018
I can confirm this, however in my project it's 1171 files. And as far as I can see it's not just once per file … I opened my project workspace, opened one file and then CTRL+clicked on a class to navigate to another file. Here's the complete log file:
tsserver.log
The project I used is this one: https://github.com/luchsamapparat/cfha-client
Another thing I've noticed: I have these performance issues in all my Angular projects, however another Node.js project is as fast as it can get. Also: All my colleagues experience the same performance issues (at least the Windows users). And disabling all extensions didn't help.
joostme commentedon Aug 13, 2018
We are experiencing extremely slow intellisense in our projects (Angular projects).
Steps to reproduce:
This slows down our development immensely.
Following lines always appear in the
tsserver.logwhen doing a CTRL-Click on a reference:What I find irritating is that Typescript scans
node_modulesfolder even though the reference I clicked is inside the project itself. So it should have stopped at line 646.Also notice the
WatchType: Directory of Failed lookup locations in module resolutionerrors on line 648 and following.The whole process took over 10 seconds and that is after I freshly restarted VSCode.
I am running on VSCode - Insiders build as well as
typescript@next.luchsamapparat commentedon Aug 21, 2018
Is there anything else I can provide to investigate this issue? I see a lot of other Performance issues being closed due to inactivity/missing feedback from the original poster. However, I have this problem since at least the last 2 major releases and it is the same for a couple of colleagues of mine.
mjbvz commentedon Aug 22, 2018
Marvin Luchs (@luchsamapparat) What TS version are you using? That log you uploaded is using TypeScript 2.7.2. Do you see this when using TypeScript 3.0.1?
luchsamapparat commentedon Aug 22, 2018
Matt Bierner (@mjbvz) Here's an updated tsserver.log für TS 3.0.1. It does not feel significantly faster. It still takes way to long to even CTRL+Click on symbols defined in the same file.
tsserver.log
Thanks for looking into this
mjbvz commentedon Aug 22, 2018
Joost Zöllner (@joostme) and Marvin Luchs (@luchsamapparat) can you both please open new issues against typescript with those server logs: https://github.com/Microsoft/TypeScript/issues/new?template=Bug_report.md
From the logs, I see that initial project load takes ~20 second and don't think this caused by VS Code
luchsamapparat commentedon Aug 23, 2018
Matt Bierner (@mjbvz) I am now more confused than ever. It appears, that there are several causes for the performance issues. In my initial post, I said that the problem also persists when deactivating all extensions. Now, with the latest VS Code as well as TypeScript version, the initial load time is indeed still slow. However, after that all further code navigation is severely slowed down by the Angular Language Service. When deactivating that extension, it's as fast as it has been months ago.
I'll open a bug report against typescript regarding the initial load time, and one against the Angular Language Service regarding the other performance issues.
Thanks for your assistance 👍
mjbvz commentedon Sep 5, 2018
Matt Maher (@bladnman) Does what Marvin Luchs (@luchsamapparat) describe also cover your original issue?
vscodebot commentedon Sep 13, 2018
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!
violettomsk commentedon Sep 25, 2018
disabling heavy extensions solves problem for me.
nasreddineskandrani commentedon Sep 27, 2018
Marvin Luchs (@luchsamapparat)
In an angular project context, for me too deactivation of the extension
Angular Language Serviceresolve the issue.=> Did you do it? i don't see any issue linked to this github issue. Can you reference it please? i may try to fix the extension my self.
edit: i found this issue we can use it i guess angular/vscode-ng-language-service#44