microsoft / vscode

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

Everything is slow #177868

Closed Tosindo closed 1 year ago

Tosindo commented 1 year ago

Type: Performance Issue

I've been slowlly disabling extensions one by one as of 3-5 days. Everything I do on VSCode is slow, literally everything, mainly:

This started only a few days ago, as it was working super ok until recently.

VS Code version: Code 1.76.2 (ee2b180d582a7f601fa6ecfdad8d9fd269ab1884, 2023-03-14T17:55:54.936Z) OS version: Windows_NT x64 10.0.19044 Modes: Sandboxed: No

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 7 5700G with Radeon Graphics (16 x 3793)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
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)|undefined| |Memory (System)|27.89GB (9.05GB free)| |Process Argv|--crash-reporter-id d851c14c-b8e9-421f-a82c-90729035f987| |Screen Reader|no| |VM|0%|
Process Info ``` CPU % Mem MB PID Process 0 105 50020 code main 0 39 13288 utility-network-service 0 368 22656 window (fdoc.ts - fabric-app - Visual Studio Code) 0 94 39020 issue-reporter 7 1504 46128 utility-process 0 85 23544 electron-nodejs ("C:\Users\tosin\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node "c:\Users\tosin\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\json-language-features\server\dist\node\jsonServerMain" --node-ipc --clientProcessId=46128) 0 168 40996 electron-nodejs ("C:\Users\tosin\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node c:\Users\tosin\.vscode\extensions\dbaeumer.vscode-eslint-2.4.0\server\out\eslintServer.js --node-ipc --clientProcessId=46128) 0 86 41792 electron-nodejs ("C:\Users\tosin\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node c:\Users\tosin\.vscode\extensions\stylelint.vscode-stylelint-1.2.4\dist\start-server.js --stdio --clientProcessId=46128) 0 459 44492 electron-nodejs ("C:\Users\tosin\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node --max-old-space-size=3072 "c:\Users\tosin\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js" --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName C:\Users\tosin\AppData\Local\Temp\vscode-typescript\512d0ad4e67424dbd004\tscancellation-d1b025497186ac89e7b4.tmp* --globalPlugins typescript-svelte-plugin --pluginProbeLocations c:\Users\tosin\.vscode\extensions\svelte.svelte-vscode-107.2.5 --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation --useNodeIpc) 0 102 38524 electron-nodejs ("C:\Users\tosin\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node "c:/Users/tosin/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/node_modules/typescript/lib/typingsInstaller.js" --globalTypingsCacheLocation C:/Users/tosin/AppData/Local/Microsoft/TypeScript/4.9 --enableTelemetry --typesMapLocation "c:/Users/tosin/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/node_modules/typescript/lib/typesMap.json" --validateDefaultNpmLocation) 0 131 49620 electron-nodejs ("C:\Users\tosin\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node c:\Users\tosin\.vscode\extensions\bradlc.vscode-tailwindcss-0.9.9\dist\tailwindServer.js --node-ipc --clientProcessId=46128) 0 167 51664 electron-nodejs ("C:\Users\tosin\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node --max-old-space-size=3072 "c:\Users\tosin\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js" --serverMode partialSemantic --useInferredProjectPerProjectRoot --disableAutomaticTypingAcquisition --cancellationPipeName C:\Users\tosin\AppData\Local\Temp\vscode-typescript\512d0ad4e67424dbd004\tscancellation-207ed88bc9711b2545a5.tmp* --globalPlugins typescript-svelte-plugin --pluginProbeLocations c:\Users\tosin\.vscode\extensions\svelte.svelte-vscode-107.2.5 --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation --useNodeIpc) 0 120 66988 shared-process 0 74 58908 ptyHost 0 6 15292 console-window-host (Windows internal process) 0 83 33180 C:\Users\tosin\AppData\Local\Microsoft\WindowsApps\Microsoft.PowerShell_8wekyb3d8bbwe\pwsh.exe -noexit -command "try { . \"c:\Users\tosin\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\contrib\terminal\browser\media\shellIntegration.ps1\" } catch {}" 0 4 70108 C:\Windows\system32\cmd.exe /c ""C:\Program Files\nodejs\npm.cmd" run dev" 0 30 34604 "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" run dev 0 4 38844 C:\Windows\system32\cmd.exe /d /s /c next dev 0 33 21328 "node" "C:\Users\tosin\Sandbox\fabric-app\web\node_modules\.bin\\..\next\dist\bin\next" dev 0 760 42472 "C:\Program Files\nodejs\node.exe" C:\Users\tosin\Sandbox\fabric-app\web\node_modules\next\dist\bin\next dev 0 32 22836 "C:\Program Files\nodejs\node.exe" C:\Users\tosin\Sandbox\fabric-app\web\node_modules\next\dist\compiled\jest-worker/processChild.js 0 80 30688 "C:\Program Files\nodejs\node.exe" C:\Users\tosin\Sandbox\fabric-app\web\node_modules\next\dist\compiled\jest-worker/processChild.js 0 49 42436 "C:\Program Files\nodejs\node.exe" C:\Users\tosin\Sandbox\fabric-app\web\node_modules\next\dist\compiled\jest-worker/processChild.js 0 49 45552 "C:\Program Files\nodejs\node.exe" C:\Users\tosin\Sandbox\fabric-app\web\node_modules\next\dist\compiled\jest-worker/processChild.js 0 34 49948 "C:\Program Files\nodejs\node.exe" C:\Users\tosin\Sandbox\fabric-app\web\node_modules\next\dist\compiled\jest-worker/processChild.js 0 81 50180 "C:\Program Files\nodejs\node.exe" C:\Users\tosin\Sandbox\fabric-app\web\node_modules\next\dist\compiled\jest-worker/processChild.js 0 81 52992 "C:\Program Files\nodejs\node.exe" C:\Users\tosin\Sandbox\fabric-app\web\node_modules\next\dist\compiled\jest-worker/processChild.js 0 6 61112 console-window-host (Windows internal process) 0 31 63296 "C:\Program Files\nodejs\node.exe" C:\Users\tosin\Sandbox\fabric-app\web\node_modules\next\dist\compiled\jest-worker/processChild.js 0 31 63508 "C:\Program Files\nodejs\node.exe" C:\Users\tosin\Sandbox\fabric-app\web\node_modules\next\dist\compiled\jest-worker/processChild.js 0 31 64636 "C:\Program Files\nodejs\node.exe" C:\Users\tosin\Sandbox\fabric-app\web\node_modules\next\dist\compiled\jest-worker/processChild.js 0 81 67012 "C:\Program Files\nodejs\node.exe" C:\Users\tosin\Sandbox\fabric-app\web\node_modules\next\dist\compiled\jest-worker/processChild.js 0 31 68884 "C:\Program Files\nodejs\node.exe" C:\Users\tosin\Sandbox\fabric-app\web\node_modules\next\dist\compiled\jest-worker/processChild.js 0 31 70896 "C:\Program Files\nodejs\node.exe" C:\Users\tosin\Sandbox\fabric-app\web\node_modules\next\dist\compiled\jest-worker/processChild.js 0 51 71916 "C:\Program Files\nodejs\node.exe" C:\Users\tosin\Sandbox\fabric-app\web\node_modules\next\dist\compiled\jest-worker/processChild.js 0 31 73488 "C:\Program Files\nodejs\node.exe" C:\Users\tosin\Sandbox\fabric-app\web\node_modules\next\dist\compiled\jest-worker/processChild.js 0 89 65744 fileWatcher 0 24 67784 crashpad-handler 1 133 72748 gpu-process ```
Workspace Info ``` | Window (fdoc.ts - fabric-app - Visual Studio Code) | Folder (fabric-app): 1457 files | File types: tsx(304) svg(181) pack(163) ts(150) js(126) scss(117) | png(72) json(64) css(9) webp(8) | Conf files: package.json(4) tsconfig.json(3) dockerfile(2) | github-actions(1) launch.json(1) project.json(1) | Launch Configs: node-terminal(2) chrome; ```
Extensions (35) Extension|Author (truncated)|Version ---|---|--- svelte-bundle|1Yi|1.0.0 vscode-tailwindcss|bra|0.9.9 vscode-css-modules|cli|0.4.2 vscode-eslint|dba|2.4.0 githistory|don|0.6.20 rust-syntax|dus|0.6.1 vscode-html-css|ecm|1.13.1 prettier-vscode|esb|9.10.4 vscode-svelte-snippets|fiv|0.5.0 vscode-yarn|gam|2.1.0 copilot|Git|1.78.9758 copilot-labs|Git|0.12.791 vscode-pull-request-github|Git|0.60.0 headwind|hey|1.7.0 vscode-env|Iro|0.1.0 git-graph|mhu|1.30.0 vscode-scss|mrm|0.10.0 playwright|ms-|1.0.9 python|ms-|2023.4.1 vscode-pylance|ms-|2023.3.20 remote-wsl|ms-|0.76.1 remote-explorer|ms-|0.3.2023021509 remote-server|ms-|1.1.2023032009 svelte-autoimport|piv|1.0.4 vscode-xml|red|0.24.0 vscode-stylelint|sty|1.2.4 svelte-vscode|sve|107.2.5 sass-indented|syl|1.8.26 tauri-vscode|tau|0.2.6 vscode-icons|vsc|12.2.0 gitblame|wad|10.1.0 vscode-import-cost|wix|3.3.0 markdown-all-in-one|yzh|3.5.0 html-css-class-completion|Zig|1.20.0 vscode-proto3|zxh|0.5.5
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 pythondataviewer:30285071 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593:30376534 pythonvs932:30410667 cppdebug:30492333 vsclangdf:30486550 c4g48928:30535728 dsvsc012cf:30540253 pynewvextcfv2:30681851 azure-dev_surveyone:30548225 pyindex848:30662994 nodejswelcome1cf:30587006 3biah626:30602489 pyind779:30671433 f6dab269:30613381 pythonsymbol12:30671437 a9j8j154:30646983 vscodeenable:30660116 azdwalk:30687957 pythonms35cf:30686773 ```
lszomoru commented 1 year ago

@deepak1556, could you please take a look? Thanks!

gjsjohnmurray commented 1 year ago

Do you know about the Start Extension Bisect command?

Tosindo commented 1 year ago

I've reinstalled again but used the system installer (don't know if that is any different honestly) and it has been working well for a few hours now, only using bare minimum extensions as well.

So it could either be the cleaned extensions or the second fresh install. I'll try enabling all extensions and use the extension bisect if the issue happens.

Tosindo commented 1 year ago

I've been using it for the last 4 hours with all the extensions enabled and the problem seems gone completely and was not able to recreate it. If the issue comes back, I'll test first with the Extension Bisect command and try to have more information to provide.