-
Notifications
You must be signed in to change notification settings - Fork 32.8k
tsserver causing 100% cpu usage (MacOS) #71746
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
Can you please share the jsx files or more information about your project |
The most basic React/styled-components .jsx file triggers it:
|
Looks like microsoft/TypeScript#30663 @weswigham When are the new styled component definitions going to be published? A lot of VS Code users are going to hit this through automatic type acquisition |
I'm seeing the same issue
|
Seems related to new version that use TS 3.4.1, seems to get better when switching to 3.3.3333 in node modules |
Duplicate of #71751 See #71751 (comment) for workarounds If that doesn't solve the issue for you, please open a new issue |
Uh oh!
There was an error while loading. Please reload this page.
Issue Type: Bug
Experiencing this after the latest VS Code Update (1.33.0) on MacOS (Mojave).
Just merely opening a .jsx file spawned a tsserver process that pegged the cpu at 100%. This continued for about an hour until I finally disabled the built-in JS/TS extension.
"ps aux | grep (PID of process)" yields:
(PID) 101.2 1.5 5775252 247640 ?? R 3:58PM 0:22.29 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName /var/folders/jf/lcpzpnrj18j12nh80mpby5640000gn/T/vscode-typescript/tscancellation-5c45dea462f9c216c776.tmp* --locale en --noGetErrOnBackgroundUpdate
These were the extension settings I was using:
"javascript.autoClosingTags": false,
"javascript.implicitProjectConfig.experimentalDecorators": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"typescript.autoClosingTags": false,
"typescript.surveys.enabled": false,
"typescript.updateImportsOnFileMove.enabled": "always",
VS Code version: Code 1.33.0 (0dd516d, 2019-04-04T15:11:32.076Z)
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
Extensions (14)
(1 theme extensions excluded)
The text was updated successfully, but these errors were encountered: