-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use TypeScript (Code Helper 100% of processor) #45491
Comments
Please follow these instructions to collect performance information. Share the output of Also, does this happen with all projects you open or just one in particular? |
Sorry for the double issue microsoft/vscode#130787 For the moment I just have the problem with one project, I have not tried yet with another one. |
Can you share the project? If not, you can instead try collecting the TS Server log to see what is going on:
|
It's a private project I can't share it. I have the |
Thanks. yes you can send it to matb at microsoft |
Ok I've just sent it. Thanks. |
Thanks. Can you also test on the latest VS Code insiders build to confirm this hasn't already been fixed |
I've just tested right now and I have the same issue. I generated the |
I'm not as well-versed in tsserver log reading as my coworkers, but I don't think I'm seeing anything in the logs except for the basic project loading. That does take around 6.4 seconds which isn't great, but for the number of files I'm seeing it's not out of the question. Otherwise, there's not enough context here to see what's slow, and even if we could, providing suggestions without the code in question would require a lot of time. I would suggest reading through our wiki page on Performance so that you can uncover why you might be experiencing performance issues. Specifically, if you've avoided all the common issues, I'd suggest trying to find hot spots in a basic compilation with |
Hello, I'm a colleague of @davidavz and I have the exact same issue since a couple of days ago. TS server isn't outputting any error, but the logs always end up with these sequences :
After these instructions, there is nothing logged until I reboot TS server (all the hover/autocomplete interactions are stuck on Loading...). |
I think I see - we get a request for completions and never seem to come back with a result. I didn't catch that in the original logs. Thanks for clarifying! My assumption is we're doing a lot of work that can't be short-circuited (most likely), or are caught in some sort of infinite loop (rarer these days). |
Hello, a small update! We still aren't able to pinpoint the issue but it seems that bumping the allocated memory for tsserver "solves" the issue. ( VSCode is back to normal, the autocompletion / imports and type checks are instant! 🚀 |
@jgoux what version of TypeScript are you running now? Can you double check that removing that memory option actually reproduces the problem again? My understanding is that a while back, Node changed to be allowed to use however much memory the system can give it, making the |
@andrewbranch We're using If I remove the option it will fallback to its default at Once the performance fixes are on stable I'll test against them with the option back to |
Oh, I missed that the option has a default coming from VS Code. Very interesting. Thanks! |
Since a couple of days I can't use VScode properly with TypeScript (show info on hover, auto import etc.) it works 5 minutes when I launch the app and then I have a Code Helper process at 100% of processor and I can't use it anymore.
I tried reinstall 1.58.2, Insiders version but I still have this issue.
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: