-
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
1.33 performance issues with TypeScript and JavaScript #71751
Comments
Please follow these instructions to collect performance information. Share the output of Could be microsoft/TypeScript#30663 |
|
I might be incorrectly identifying this as a performance issue, but it's definitely disabling the above features in the editor some how. The related issue seemed to be a TypeScript, which I'm not using. I am using |
Thanks. Yes this is in all likelihood a duplicate of microsoft/TypeScript#30663. Typescript also powers our JavaScript intellisense so this is the correct issue even though you are not writing typescript Main fix TypeScript users should make sure they are pulling in the latest version of If you are using JavaScript, you may to clear your automatic typings cache to clear the file that caused this from their cache. To do this, delete the typings typing cache file listed below and restart vscode:
Other possible workarounds:
|
@mjbvz Thanks for this advice! |
Clearing the cache and upgrading the styled-components types fixes the problem, but the performance is still really bad... PS Downgrading TypeScript gives me the best result |
I also have really bad performance after upgrading VS Code to 1.33 |
downgrading typescript to 3.3.3 solved this problem |
problem solved by: npm install --save-dev [email protected] (which installed 3.3.4 into my workspace), then select the typescript version in the bottom of the vsc window and select "use workspace version 3.3.4" |
Just upgraded to the latest version of VSCode and that workspace trick worked for me @ReaperTech Eventually it would be nice to have a real solution to this instead of downgrading though 😅 |
I'm glad it worked for you @Daniel-Griffiths ! Maybe they will fix in the next release. |
problem also caused by extension "angular language service 0.1.11" |
@ReaperTech solution worked perfectly for me! Thanks! |
I have a nodejs project and a react project both suffering from this problem, although there's no typescript in any of them. |
If don don't want to have to do this on a per-project basis, you can also install TypeScript 3.3 globally yarn global add [email protected] and then in your {
"typescript.tsdk": "~/.config/yarn/global/node_modules/typescript/lib/"
} |
Thank you @mjbvz, worked for me! |
Globally installing the next (dev) version of TypeScript (with To add to your settings, go to preferences > settings, type "typescript.tsdk": "/usr/local/lib/node_modules/typescript/lib/", And then in a TypeScript file, in the bottom right of the editor, click on the TypeScript version (like 3.x.x) and choose "Use VSCode's version (3.5.x)" |
Steps to Reproduce:
Does this issue occur when all extensions are disabled?: Yes
After updating to the latest version of VSCode, it became pretty much unusable. I mainly work on web development, so that's all that I could speak on but things became measurably slower.
At idle it was consuming 45+% of CPU usage and ~1 GB RAM
Errors stopped dismissing/updating:
Suggestions/Intellisense stopped showing up (or took 3s+ to show up if at all):
Emmet/Tag autocomplete stopped functioning:
When I downgraded, it seemed to all go away, I tried reinstalling 3 times, everytime I selected the upgrade the problems came back. I also restarted VSCode and my computer multiple times. For now, I'm just staying at 1.32.3.
The text was updated successfully, but these errors were encountered: