TypeScript: High cpu `electron_node typingsInstaller.js tsserver.js typesMap.js` with all extensions disabled
From @ktravelet on March 19, 2018 21:41
Steps to Reproduce:
- Open vscode
- vscode will, after 10-15 min, start consuming 0.5-1 core all the time.
Does this issue occur when all extensions are disabled?: Yes
The output below is from when all extensions are disabled.
Version: Code 1.21.1 (79b44aa704ce542d8ca4a3cc44cfca566e7720f1, 2018-03-14T14:39:09.335Z)
OS Version: Darwin x64 17.4.0
CPUs: Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz (8 x 2800)
Memory (System): 16.00GB (2.74GB free)
Load (avg): 2, 2, 2
VM: 0%
Screen Reader: no
Process Argv: /Applications/Visual Studio Code.app/Contents/MacOS/Electron
CPU % Mem MB PID Process
0 98 3905 code main
1 82 3906 gpu-process
0 82 3908 shared-process
2 279 11573 window (systemDetails.overview.js — Hanamon)
0 82 11577 extensionHost
1 295 11585 electron_node electronForkStart.js tsserver.js
70 98 11598 electron_node typingsInstaller.js tsserver.js typesMap.js
0 49 11988 electron_node jsonServerMain.js
0 49 11578 watcherService
0 33 11579 terminal
0 0 11580 /bin/bash -l
0 49 11897 node app.js
Workspace Stats:
| Window (systemDetails.overview.js — Hanamon)
| Folder (Hanamon): 627 files
| File types: js(382) css(48) html(39) json(25) md(23) png(15) map(12)
| ejs(9) sql(6) jpg(5)
| Conf files: package.json(4) makefile(2) launch.json(1) settings.json(1)
| jsconfig.json(1) grunt.js(1) gulp.js(1)
| webpack.config.js(1)
| Launch Configs: node
Copied from original issue: Microsoft/vscode#46141
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 12
- Comments: 18 (13 by maintainers)
@sandersn It is a JavaScript (quite large) not TypeScript project but I found 10 occurrences of
@typedefIf I remove that particular one:
the CPU usage goes down to 0%. File source: https://gist.github.com/filmic/8d573005e54394ffdd781f8af9104f6a
I also noticed I can achieve the same effect (0% CPU) if I set that in VS Code settings:
"typescript.disableAutomaticTypeAcquisition": true@sheetalkamat Could you advise me how to use typescript@next in VS Code? I don’t use typescript as a dependancy in my project.
Closing this bug since there is no new information. Pleas reopen this bug when the logs are available.
@filmic I just merged the fix for #25104 so
typescript@nextwill have it by tomorrow.