-
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
Overall perf. issue with TypeScript(JS) #72362
Comments
Does this reproduce in the latest VS Code insiders build with all extensions disabled? |
Yes, on the insider assembly, in my TypeScript project (TSX) this is repeated. |
I forgot to mention this but beside the slowness, intellisense got not so intelligence :) (go to wrong root definitions or just stuck at same definition) |
@berkaey Did you test on insiders? Also, do you have |
No I didn't. and No both workspace folders doesn't have |
btw, @mjbvz, you mean insiders version? if it so, how can i download it ? |
https://code.visualstudio.com/insiders/. Test with all extensions disabled |
Hey @mjbvz, I tested for 10 mins without any extensions, I guess it is much better than 1.33 but I think still has slower navigation on some case and sometimes it goes to import definition first sometimes it just goes to file itself. |
@mjbvz, after a full-day test on insider(with extensions) issue still stands. A bit more fast than 1.33 but lags behind 1.32 |
@berkaey So this didn't happen when you disabled all extensions? Also, can you share your project? |
I tested without extensions only 10-20 min. 'cause I'm much slower without extensions :). Do you mean workspace file? |
@mjbvz We're using @types/styled-components. What's the deal with them? |
@berkaey If this only happens when extensions are enabled, then one of your extensions is causing this. If you can share your project (as a github repo) then we can investigate this better |
@mjbvz it is happening without extensions also, (but bit better from 1.33) I'm using same extensions on 1.32 and works flawlessly. (I'm actually had to use 1.32 otherwise all of my MacBook Pro fans just hit the ceil :) too much cpu usage I guess) |
I do have
I am using the following version of vscode
I think it is slow mostly on |
@berkaey Can you try changing your workspace to use |
@mjbvz I'm not using typescript, no tsx files in my workspace (but as you now most of the node_modules libs are typed like styled-components etc.) |
Typescript powers our javascript intellisense. Try those steps |
@mjbvz Do you think it is happening because of this issue in typescript itself? I investigated because it was not only vscode which was slow, rather For typescript version
For typescript version
Overall vscode ts intellisense is much faster now. Also |
I'm also getting this, not using |
Also for typescript
So think switching to typescript |
Sounds like this could be microsoft/TypeScript#31341 To check this, can you please try upgrading your workspace to use the next |
I tried with Here are more details https://devblogs.microsoft.com/typescript/announcing-typescript-3-5-rc/ |
@berkaey Can you please confirm by testing using the latest VS Code insiders build, which includes TS 3.5-rc |
One weird thing I still see is the compiler is slow to output the success
message when you fix the last error. So if you have an error, and you fix
it, it sits at “compiling...” for 6 seconds or so. In reality, it actually
outputs the file before that, but it seems the message just gets held up
for a while.
|
@mjbvz I was also experiencing slowness in |
@mjbvz let me check the 1.35-insider |
After a quick test, I would say it is more responsive but still lags when I first open a file and cmd+click on an import, (I'm not sure but) when I open |
Closing. A spike in cpu usage is expected on first open |
Issue Type: Performance Issue
After updating to 1.33 (everything is still fine at 1.32)
It happens when you need to use TypeScript Intellisense.
PS: I didn't experience this in a TypeScript Project, My Project is a ES6 JS Project.
It really got messy when you try to cmd/ctrl+click to anything.
PS2: removing TypeScript cache helps a bit but after an hour it became slow again
VS Code version: Code 1.33.1 (51b0b28, 2019-04-11T08:22:55.268Z)
OS version: Darwin x64 18.5.0
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Process Info
Workspace Info
Extensions (21)
(1 theme extensions excluded)
The text was updated successfully, but these errors were encountered: