-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
[Mac] Performance Issues - tsserver.js #72499
Comments
Can you please try collecting the TS Server logs to help us investigate:
If you can share the log, I can also take a look to see if anything stands out.
|
Here is the tsserver.log : https://gist.github.com/jrobber/56dc8d986e7127f6592ec2ce770eceb3. Please, let me know when you're done so I can take it down. |
Thanks @jrobber. I've taken a look at the logs Nothing stands out from my first look but one thing you should try is creating a jsconfig.json in your project. I see a few javascript files from under |
I added the following jsconfig.json, then restarted VSCode with no extensions :
And the same problem/behavior persists. Any call to intellisense, auto-complete, or opening multiple files puts the CPU at over 100% for code helper. Happy to arrange a screen share or perform any other tests you can think of. |
I had to work in a different project and noticed that the problem does not happen in that project. That project is react native and does not use styled components. Made me wonder if this is related to the styled components issues linked to in the original thread. So, I followed the steps again from that thread and I'm still seeing the huge CPU spikes in this project. |
@jrobber it happens for me when I open a file with a lot of template strings, don't have to be styled components. Code Helper stops using CPU after an hour. It looks like building the cache is slow. I cannot reproduce it with a single file so maybe it's something that compounds. e.g. const content3 = `# FIRST COURSE
> Host to select one option to serve guests
- **House Salad**
- **Assorted Pizzas**
- **Calamari**
- **Risotto**
- **Mixed Green Salad**
- **Beet Salad**
- **Caesar Salad**
- **Chopped Wedge Salad**
- **Antipasto Salad**
# SECOND COURSE
- **Brown Butter Tortellini**
- **Penne Con Salsiccia**
- **Farfalle**
- **Papardelle Ragu**
- **Chicken Alfredo**
- **Chicken Parmesan**
# DESSERT
- **Cheesecake**
- **Gelato**
- **Sorbetto**`; |
I can trigger it by pressing
There are no template strings in the file. But it definitely lasts a lot less long than files with template strings. |
Downgrading to 1.32.3 seems to have resolved this issue for me. I experienced it with 1.33 and 1.33.1. I also am using React and frequently using tagged template strings (styled-components) but the problem occurred even in files without any styled components. |
Downgrading seems to have helped/resolved this issue for me as well. I've been watching it the last few days and while VSCode still gets in spurts of very high CPU it's much less frequent and not triggered every time I open a few files. I'll keep an eye on the spikes and see if I can gather any more information. |
I can confirm as well that the issue appears to be in 1.33. We are pinning our cookbooks to 1.32, and will watch this issue before testing newer versions. |
Downgrading to 1.32.3 also solved this issue for me. Upgrading to latest |
Sounds like this could be microsoft/TypeScript#31341 To check this, can you please try upgrading your workspace to use the next |
Closing as likely duplicate of microsoft/TypeScript#31341 / microsoft/TypeScript#30819. The latest VS Code insiders build includes TypeScript 3.5 which should fix this. If you see see performance issues using TypeScript 3.5, please open a new issue so we can investigate |
Steps to Reproduce:
Does this issue occur when all extensions are disabled?: Yes
Per this thread : #71886, I am starting a new thread because my performance problems are persisting after following all the recommended steps.
My project is a javascript project. My process don't stay spiked, but every file I open seems to add 20-60 seconds on to the duration of the spike. So trying to drill down into my code and flipping back and forth gets me to a point where I just have to kill VS Code and start over to get any progress made.
Here is the aux dump making me suspect tsserver.js :
The text was updated successfully, but these errors were encountered: