microsoft / vscode

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

VsCode Intellisense, F12, etc. slow #183443

Closed cloonrjms closed 11 months ago

cloonrjms commented 1 year ago

Type: Performance Issue

Anytime I F12 into a method, it's extremely slow and takes a few seconds to load the file and method I'm trying to step into. Additionally, the intellisense autocomplete options take a few seconds to load, which slows down my efficiency when working.

VS Code version: Code 1.74.3 (97dec172d3256f8ca4bfb2143f3f76b503ca0534, 2023-01-09T16:59:02.252Z) OS version: Windows_NT x64 10.0.19044 Modes: Sandboxed: No

System Info |Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i7-11850H @ 2.50GHz (16 x 2496)| |GPU Status|2d_canvas: unavailable_software
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: disabled_off| |Load (avg)|undefined| |Memory (System)|63.73GB (29.62GB free)| |Process Argv|--crash-reporter-id 3e530e10-fe77-44eb-92a3-a5fc6b80c8ef| |Screen Reader|no| |VM|67%|
Process Info ``` CPU % Mem MB PID Process 0 128 20364 code main 0 20 5996 utility-network-service 0 93 10316 issue-reporter 0 9 13404 crashpad-handler 0 289 18324 extensionHost 6 528 30404 "C:\Users\cvanloon\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node --max-old-space-size=16384 "c:\Users\cvanloon\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js" --useInferredProjectPerProjectRoot --disableAutomaticTypingAcquisition --enableTelemetry --cancellationPipeName C:\Users\cvanloon\AppData\Local\Temp\vscode-typescript\a68bb10a81ba5a571455\tscancellation-7ec9828e9595276735e4.tmp* --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation --useNodeIpc 0 91 36832 "C:\Users\cvanloon\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node --max-old-space-size=16384 "c:\Users\cvanloon\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js" --serverMode partialSemantic --useInferredProjectPerProjectRoot --disableAutomaticTypingAcquisition --cancellationPipeName C:\Users\cvanloon\AppData\Local\Temp\vscode-typescript\a68bb10a81ba5a571455\tscancellation-79a4708e0334e0c137ee.tmp* --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation --useNodeIpc 0 69 41184 "C:\Users\cvanloon\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node "c:\Users\cvanloon\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\css-language-features\server\dist\node\cssServerMain" --node-ipc --clientProcessId=18324 0 66 47092 "C:\Users\cvanloon\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node "c:\Users\cvanloon\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\json-language-features\server\dist\node\jsonServerMain" --node-ipc --clientProcessId=18324 0 95 50040 "C:\Users\cvanloon\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node "c:\Users\cvanloon\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\html-language-features\server\dist\node\htmlServerMain" --node-ipc --clientProcessId=18324 0 755 51020 "C:\Users\cvanloon\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node c:\Users\cvanloon\.vscode\extensions\dbaeumer.vscode-eslint-2.4.0\server\out\eslintServer.js --node-ipc --clientProcessId=18324 0 312 20340 window (typography.scss - WebApp - Visual Studio Code) 0 211 25068 gpu-process 0 83 25416 shared-process 0 54 19636 ptyHost 0 50 2600 C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command "try { . \"c:\Users\cvanloon\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\contrib\terminal\browser\media\shellIntegration.ps1\" } catch {}" 0 5 7040 console-window-host (Windows internal process) 0 5 19720 console-window-host (Windows internal process) 0 5 19992 console-window-host (Windows internal process) 0 5 24800 console-window-host (Windows internal process) 0 45 26092 C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command "try { . \"c:\Users\cvanloon\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\contrib\terminal\browser\media\shellIntegration.ps1\" } catch {}" 0 45 26836 C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command "try { . \"c:\Users\cvanloon\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\contrib\terminal\browser\media\shellIntegration.ps1\" } catch {}" 0 4 27032 "C:\Program Files\Git\bin\bash.exe" --login -i 0 9 20344 "C:\Program Files\Git\bin\..\usr\bin\bash.exe" --login -i 0 5 27128 console-window-host (Windows internal process) 0 50 27160 C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command "try { . \"c:\Users\cvanloon\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\contrib\terminal\browser\media\shellIntegration.ps1\" } catch {}" 0 6 27196 console-window-host (Windows internal process) 0 5 27216 console-window-host (Windows internal process) 0 5 27344 console-window-host (Windows internal process) 0 4 27412 "C:\Program Files\Git\bin\bash.exe" --login -i 0 10 27456 "C:\Program Files\Git\bin\..\usr\bin\bash.exe" --login -i 0 5 27464 console-window-host (Windows internal process) 0 45 27512 C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command "try { . \"c:\Users\cvanloon\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\contrib\terminal\browser\media\shellIntegration.ps1\" } catch {}" 0 5 28248 console-window-host (Windows internal process) 0 54 28468 C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command "try { . \"c:\Users\cvanloon\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\contrib\terminal\browser\media\shellIntegration.ps1\" } catch {}" 0 5 34648 C:\Windows\system32\cmd.exe /c ""C:\Program Files\nodejs\npm.cmd" run start" 0 44 6696 "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs\\node_modules\npm\bin\npm-cli.js" run start 0 5 45028 C:\Windows\system32\cmd.exe /d /s /c ng serve --host=127.0.0.1 0 3735 47372 electron_node ng.js 0 54 28808 C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command "try { . \"c:\Users\cvanloon\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\contrib\terminal\browser\media\shellIntegration.ps1\" } catch {}" 0 50 30180 C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command "try { . \"c:\Users\cvanloon\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\contrib\terminal\browser\media\shellIntegration.ps1\" } catch {}" 0 80 46024 C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command "try { . \"c:\Users\cvanloon\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\contrib\terminal\browser\media\shellIntegration.ps1\" } catch {}" 0 6 49040 console-window-host (Windows internal process) 0 54 44856 fileWatcher 0 77 48712 "C:\Users\cvanloon\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node "c:\Users\cvanloon\AppData\Local\Programs\Microsoft VS Code\resources\app\out\bootstrap-fork" ms-vscode.pwa-chrome "{\"common.vscodemachineid\":\"784116d68e45fba799abaeab77b1929f8b08a802a082b11ad7dc4d96de326bd1\",\"common.vscodesessionid\":\"9d745060-db0f-409b-b8dd-5d505b5291101684844889171\"}" 0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255 0 42 51928 fileWatcher 0 389 26368 window (shift-adjustment.component.ts - WebApp - Visual Studio Code) 0 260 42336 extensionHost 0 101 22312 "C:\Users\cvanloon\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node "c:\Users\cvanloon\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\html-language-features\server\dist\node\htmlServerMain" --node-ipc --clientProcessId=42336 0 92 22872 "C:\Users\cvanloon\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node --max-old-space-size=16384 "c:\Users\cvanloon\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js" --serverMode partialSemantic --useInferredProjectPerProjectRoot --disableAutomaticTypingAcquisition --cancellationPipeName C:\Users\cvanloon\AppData\Local\Temp\vscode-typescript\d1271b78d79009204f72\tscancellation-32d5a7dd1aaa69c70f0b.tmp* --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation --useNodeIpc 0 109 23456 electron_node ms-vscode.js 0 122 7404 window (undefined) 0 30 21460 window (undefined) 0 10 26616 crashpad-handler 0 143 41288 gpu-process 0 19 43272 utility 0 33 49184 utility-network-service 0 973 26432 "C:\Users\cvanloon\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node c:\Users\cvanloon\.vscode\extensions\dbaeumer.vscode-eslint-2.4.0\server\out\eslintServer.js --node-ipc --clientProcessId=42336 0 37 29164 "C:\Users\cvanloon\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node "c:\Users\cvanloon\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\json-language-features\server\dist\node\jsonServerMain" --node-ipc --clientProcessId=42336 7 903 30416 "C:\Users\cvanloon\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node --max-old-space-size=16384 "c:\Users\cvanloon\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js" --useInferredProjectPerProjectRoot --disableAutomaticTypingAcquisition --enableTelemetry --cancellationPipeName C:\Users\cvanloon\AppData\Local\Temp\vscode-typescript\d1271b78d79009204f72\tscancellation-b871a3f4b58fed5ed87e.tmp* --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation --useNodeIpc ```
Workspace Info ``` | Window (shift-adjustment.component.ts - WebApp - Visual Studio Code) | Window (typography.scss - WebApp - Visual Studio Code) | Folder (WebApp): 9863 files | File types: json(7268) html(787) ts(769) pack(163) scss(162) ttf(63) | js(36) woff2(15) woff(15) css(12) | Conf files: launch.json(1) settings.json(1) package.json(1) | tsconfig.json(1) | Launch Configs: node-terminal(3) node(2) firefox msedge chrome | Folder (WebApp): 9360 files | File types: json(6863) ts(769) html(755) scss(162) pack(127) ttf(65) | js(35) woff2(15) woff(13) css(12) | Conf files: launch.json(1) settings.json(1) package.json(1) | tsconfig.json(1) | Launch Configs: node-terminal(3) node(2) firefox msedge chrome; ```
Extensions (4) Extension|Author (truncated)|Version ---|---|--- vscode-eslint|dba|2.4.0 prettier-vscode|esb|9.13.0 vscode-jest-runner|fir|0.4.60 powershell|ms-|2023.5.0
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vsdfh931cf:30280410 vshan820:30294714 vstes263cf:30335440 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593cf:30376535 pythonvs932:30410667 cppdebug:30492333 vsclangdf:30486550 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyone:30548225 3biah626:30602489 pyind779:30671433 f6dab269:30613381 pythonsymbol12:30671437 a9j8j154:30646983 showlangstatbar:30737416 pythonms35:30701012 pythonfmttext:30731395 fixshowwlkth:30730052 hidesbindicator:30730055 pythongtdpathcf:30739705 ```
jrieken commented 1 year ago

It looks like the issue is caused by one of your installed extensions. All extensions execute together on a single nodejs process, so in order to narrow down the possible problematic extension, please try the following:

initial step final
image image image