-
Notifications
You must be signed in to change notification settings - Fork 12.8k
TSServer using 100%+ CPU breaking Intellisense, import suggestions etc #38504
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
Comments
Update: Checking 'TypeScript: Disable Automatic Type Acquisition' appears to have helped. |
@Undistraction Are you able to share a project that triggers this behavior? Does it seem to be triggered when you open one file in particular? |
@mjbvz This project triggers this for me elastic-charts. Any typescript file. If you just start clicking into definitions, you should run into this issue. Let me know if you are not able to repro and I can get more accurate steps to repro.
|
@mjbvz Happy to share any logs or profiling that might help, but unfortunately I cannot share this project as it is closed-source, however the problem definitely lies with: `'TypeScript: Disable Automatic Type Acquisition'. I've had it checked/disabled for days with only a couple of instances of VSCode locking up (compared to it happening near-permanently before). I just tried checking it again, and pretty much instantly the process jumped to 100%+ cpu and VScode locked up. Rechecking it reversed the issue and VSCode is usable again. |
@mjbvz were you able to reproduce the issue? This is a daily issue that comes and goes, forcing me to use IntelliJ. |
@mjbvz This problem has returned with version 1.46.1, making VSCode almost unusable for me. |
I am experiencing the same problem in VSCode 1.46.1 (MacOS 10.15.5). |
I dont seem to be able to repro this with typescript@next Can you please try typescript@next and see if this is fixed. If not we would need tsserver, ti logs and if possible repro steps. |
I haven't noticed this in a while, nor to the severity it was early last year. If I come across it again I will try to create a reproducible example. |
I'm having an issue with
Unbearably slow, fans running constantly. Tried full restart and get the same result. @sheetalkamat could you test this using |
This is an ongoing issue for the last 2 years. It would be nice if someone from the core team finally had a look into it. |
Experiencing the same problem here as well. After auto update of VSC I noticed problems loading type definitions, import suggestions, etc. Searched dozens of existing questions on the topic, and found that the culprit is absolutely Every time I enter anything into a TS file (and TS only), this spikes the CPU and locks out intellisense for at least a minute. Disabled all extensions and this still happens Enabled this in VSC: TypeScript: Disable Automatic Type Acquisition, and the issue still happens As others have also done, I've pinpointed the issue to: Tried the bisect utility, no extensions were found to cause the issue Tried using older versions of typescript and VS code, even after removing 100% of modules/components of VSC on my machine Side note: I experienced this same unfortunate surprise when I started using VSC on my Windows 10 PC, taking my work with me on the go ( VSC also auto-updated here too, I believe). Result is ALWAYS the same. tsserver.js spiking CPU on every.single.edit. Update: I also uninstalled any ts packages that were global. Updated Node and NPM. Also found a hidden .vscode at the root and removed that while removing everything else related to VSC. Still nothing :( Using a different editor now. This is nuts |
Hey folks, please log a new issue with repro steps and we'll be happy to investigate. Thanks! |
Issue Type: Performance Issue
As soon as I open a JS file and begin editing, TSServer begins using a huge amount of CPU and intellisense etc ceases to function correctly. This happens with all extensions disabled.
My
jsconfig.json
:I'm not using TypeScript, but if I create a
.ts
file in my project I can see the version is3.8.3
. I have tried installing the JavaScript and Typescript Nightly extension which gives me4.0.0-dev.20200505
and if anything the performance is worse. Data below was captured with Nightly extension disabled.I'm running a 2019 Macbook Pro with maxed out specs. At this point VSCode is effectively unusable.
Running
ps aux PROCESS ID
for the tsserver process:This is a follow-on from microsoft/vscode#96255 and possibly related to #38329
Possibly related: My
jsconfig.json
file is coloured red in the sidebar. the opening bracket is underlined as an error, and when I roll over the bracket I get this popup (note thataxios-mock-adapter
is a nested-dependency:VS Code version: Code 1.44.2 (ff915844119ce9485abfe8aa9076ec76b5300ddd, 2020-04-16T17:07:18.473Z)
OS version: Darwin x64 18.7.0
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Process Info
Workspace Info
The text was updated successfully, but these errors were encountered: