microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.96k stars 29.18k forks source link

Code Helper process take 100% of my CPU #160098

Closed MatteoGauthier closed 1 year ago

MatteoGauthier commented 2 years ago

Type: Performance Issue

Nothing special

VS Code version: Code 1.71.0 (Universal) (784b0177c56c607789f9638da7b6bf3230d47a8c, 2022-09-01T07:25:38.437Z) OS version: Darwin arm64 21.6.0 Modes: Sandboxed: No

System Info |Item|Value| |---|---| |CPUs|Apple M1 Pro (10 x 24)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|3, 3, 3| |Memory (System)|16.00GB (0.08GB free)| |Process Argv|--crash-reporter-id abed5057-1cf3-418c-9b06-4d1438cc4e87| |Screen Reader|yes| |VM|0%|
Process Info ``` CPU % Mem MB PID Process 23 147 8771 code main 7 66 8828 gpu-process 0 16 8837 utility-network-service 19 295 8844 window (~/dotmind/gocad/src/core/components/PositionBox/index.tsx — gocad) 21 115 8919 shared-process 0 33 8993 ptyHost 0 0 9294 /bin/zsh (figterm) 0 0 9337 /bin/zsh --login 0 33 18936 node /usr/local/bin/yarn start 0 16 18937 /usr/local/bin/node /Users/matteogauthier/dotmind/gocad/node_modules/.bin/react-scripts start 0 836 18938 /usr/local/bin/node /Users/matteogauthier/dotmind/gocad/node_modules/react-scripts/scripts/start.js 0 197 18941 /usr/local/bin/node --max-old-space-size=2048 /Users/matteogauthier/dotmind/gocad/node_modules/fork-ts-checker-webpack-plugin/lib/typescript-reporter/reporter/TypeScriptReporterRpcService.js 0 33 18942 /usr/local/bin/node --max-old-space-size=2048 /Users/matteogauthier/dotmind/gocad/node_modules/fork-ts-checker-webpack-plugin/lib/typescript-reporter/reporter/TypeScriptReporterRpcService.js 0 0 9298 /bin/zsh (figterm) 0 16 9018 fileWatcher 0 0 21051 /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command= 0 229 9224 extensionHost 0 49 9231 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --ms-enable-electron-run-as-node --max-old-space-size=3072 /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js --serverMode partialSemantic --useInferredProjectPerProjectRoot --disableAutomaticTypingAcquisition --cancellationPipeName /var/folders/sz/b39nbqfn35g26y1pt_t7j3nr0000gn/T/vscode-typescript501/5017202bccd9dcf9ac7f/tscancellation-1b7f6f29ed4b4e8f032d.tmp* --globalPlugins @vsintellicode/typescript-intellicode-plugin,ms-vsintellicode-typescript --pluginProbeLocations /Users/matteogauthier/.vscode/extensions/visualstudioexptteam.vscodeintellicode-1.2.24,/Users/matteogauthier/.vscode/extensions/visualstudioexptteam.vscodeintellicode-1.2.24 --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation --useNodeIpc 100 16 9232 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --ms-enable-electron-run-as-node --max-old-space-size=3072 /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName /var/folders/sz/b39nbqfn35g26y1pt_t7j3nr0000gn/T/vscode-typescript501/5017202bccd9dcf9ac7f/tscancellation-b8b8c06a7333c77ff156.tmp* --globalPlugins @vsintellicode/typescript-intellicode-plugin,ms-vsintellicode-typescript --pluginProbeLocations /Users/matteogauthier/.vscode/extensions/visualstudioexptteam.vscodeintellicode-1.2.24,/Users/matteogauthier/.vscode/extensions/visualstudioexptteam.vscodeintellicode-1.2.24 --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation --useNodeIpc 0 16 9238 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --ms-enable-electron-run-as-node /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typingsInstaller.js --globalTypingsCacheLocation /Users/matteogauthier/Library/Caches/typescript/4.8 --enableTelemetry --typesMapLocation /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typesMap.json --validateDefaultNpmLocation 0 33 9233 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --ms-enable-electron-run-as-node /Users/matteogauthier/.vscode/extensions/divlo.vscode-styled-jsx-languageserver-1.3.1/server/out/server.js --node-ipc --clientProcessId=9224 0 49 9234 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --ms-enable-electron-run-as-node /Users/matteogauthier/.vscode/extensions/sburg.vscode-javascript-booster-14.0.1/dist/server/server.js --node-ipc --clientProcessId=9224 0 16 9235 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --ms-enable-electron-run-as-node /Users/matteogauthier/.vscode/extensions/formulahendry.auto-rename-tag-0.1.10/packages/server/dist/serverMain.js --node-ipc --clientProcessId=9224 0 16 9243 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --ms-enable-electron-run-as-node /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=9224 0 98 9270 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --ms-enable-electron-run-as-node /Users/matteogauthier/.vscode/extensions/dbaeumer.vscode-eslint-2.2.6/server/out/eslintServer.js --node-ipc --clientProcessId=9224 25 82 21049 issue-reporter ```
Workspace Info ``` | Window (~/dotmind/gocad/src/core/components/PositionBox/index.tsx — gocad) | Folder (gocad): 589 files | File types: html(163) tsx(93) svg(73) scss(43) ts(29) png(6) json(5) | DS_Store(3) js(3) gitignore(2) | Conf files: package.json(1) tsconfig.json(1); ```
Extensions (33) Extension|Author (truncated)|Version ---|---|--- vite|ant|0.2.5 vscode-custom-css|be5|7.1.0 vscode-tailwindcss|bra|0.8.6 vscode-toggle-quotes|Bri|0.3.6 turbo-console-log|Cha|2.5.1 vscode-eslint|dba|2.2.6 vscode-styled-jsx-languageserver|Div|1.3.1 vscode-styled-jsx-syntax|Div|1.3.1 githistory|don|0.6.19 es7-react-js-snippets|dsz|4.4.3 gitlens|eam|12.2.1 prettier-vscode|esb|9.8.0 auto-rename-tag|for|0.1.10 vscode-pull-request-github|Git|0.50.0 go|gol|0.35.2 vscode-graphql-syntax|Gra|1.0.4 todo-tree|Gru|0.0.215 vue-snippets|hol|1.0.4 vscode-peacock|joh|4.2.0 dotenv|mik|1.0.1 zeit-co-vscode-schemas|ph1|0.1.2 prisma|Pri|4.3.1 json-schema-2020-validation|pro|0.0.5 nextjs-snippets|Pul|0.0.5 vscode-yaml|red|1.10.1 vscode-javascript-booster|sbu|14.0.1 sass-indented|syl|1.8.22 vscodeintellicode|Vis|1.2.24 vscode-icons|vsc|11.16.0 fig|wit|0.0.6 glean|wix|5.2.2 markdown-pdf|yza|1.4.4 html-css-class-completion|Zig|1.20.0 (4 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 pythondataviewer:30285071 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411cf:30557515 vsaa593:30376534 pythonvs932:30410667 cppdebug:30492333 pylanb8912:30545647 vsclangdc:30486549 c4g48928:30535728 hb751961:30553087 dsvsc012cf:30540253 azure-dev_surveyone:30548225 i497e931:30553904 ```
MatteoGauthier commented 2 years ago
Capture d’écran 2022-09-05 à 16 22 40
ZmSama commented 2 years ago

My situation is the same as yours, but I find that this situation only occurs when the react + typescript + vite tool is used to build a project, and JS / TS language functions are always unavailable, which takes up a very high CPU. At present, no solution has been found.

MatteoGauthier commented 2 years ago

My situation is the same as yours, but I find that this situation only occurs when the react + typescript + vite tool is used to build a project, and JS / TS language functions are always unavailable, which takes up a very high CPU. At present, no solution has been found.

Not found for me too, i'm on a node + create-react-app + typescript environement

sardorw commented 2 years ago

I have same issue

image
M00N-MAN commented 1 year ago

Hi @hediet, Could you please share your opinion on why this topic doesn't have any updates so long?

deepak1556 commented 1 year ago

Can you share the process sample of the Code Helper process, also can you share the command line arguments of this process.

vscodenpa commented 1 year ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!