microsoft / vscode

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

VSCode sluggish on Windows 11 #138580

Closed kishore881 closed 2 years ago

kishore881 commented 2 years ago

Issue Type: Performance Issue

VSCode startup is slower and the editor is laggy in all the actions even with all the extensions disabled. The issues arose only after upgrading to windows 11 from 10. Every action including mouse click, hover, keypress, all have a bit of lag and all these issues are happening only on VSCode, the rest of Windows is pretty responsive.

VS Code version: Code 1.62.3 (ccbaa2d27e38e5afa3e5c21c1c7bef4657064247, 2021-11-17T08:11:14.551Z) OS version: Windows_NT x64 10.0.22000 Restricted Mode: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz (8 x 1800)| |GPU Status|2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|7.87GB (1.23GB free)| |Process Argv|--folder-uri file:///d%3A/Work%20Space/BTP/New%20folder --crash-reporter-id 6c6e4759-51cf-4a60-91d2-2f876cac79de| |Screen Reader|no| |VM|67%|
Process Info ``` CPU % Mem MB PID Process 0 114 6436 code main 0 79 1632 shared-process 0 81 10600 ptyHost 0 6 2764 console-window-host (Windows internal process) 0 5 3316 C:\Windows\System32\cmd.exe 0 6 6188 console-window-host (Windows internal process) 0 5 8188 C:\Windows\System32\cmd.exe 0 0 3964 0 24 9160 "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs\\node_modules\yarn\bin\yarn.js" chain 0 5 9628 C:\Windows\system32\cmd.exe /d /s /c "yarn workspace @scaffold-eth/hardhat chain" 0 24 2376 "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\yarn\bin\yarn.js" workspace @scaffold-eth/hardhat chain 0 29 668 "C:\Program Files\nodejs\node.exe" C:\Users\kisho\AppData\Roaming\nvm\v12.18.3\node_modules\yarn\lib\cli.js chain 0 5 6564 C:\Windows\system32\cmd.exe /d /s /c "hardhat node --network hardhat --no-deploy" 0 65 4456 "C:\Program Files\nodejs\node.exe" "D:\Work Space\BTP\New folder\packages\hardhat\node_modules\.bin\\..\hardhat\internal\cli\cli.js" node --network hardhat --no-deploy 0 6 10552 console-window-host (Windows internal process) 0 5 10700 C:\Windows\System32\cmd.exe 0 26 3288 "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" run start 0 5 8428 C:\Windows\system32\cmd.exe /d /s /c yarn workspace @scaffold-eth/react-app start 0 35 12160 "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs\\node_modules\yarn\bin\yarn.js" workspace @scaffold-eth/react-app start 0 34 12140 "C:\Program Files\nodejs\node.exe" C:\Users\kisho\AppData\Roaming\nvm\v12.18.3\node_modules\yarn\lib\cli.js start 0 4 7436 C:\Windows\system32\cmd.exe /d /s /c "react-scripts start" 0 23 11124 "C:\Program Files\nodejs\node.exe" "D:\Work Space\BTP\New folder\packages\react-app\node_modules\.bin\\..\..\..\..\node_modules\react-scripts\bin\react-scripts.js" start 0 509 9008 "C:\Program Files\nodejs\node.exe" "D:\Work Space\BTP\New folder\node_modules\react-scripts\scripts\start.js" 0 207 4356 window (IERC721.sol - New folder - Visual Studio Code) 0 499 2556 extensionHost 0 78 2444 "C:\Users\kisho\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node c:\Users\kisho\.vscode\extensions\juanblanco.solidity-0.0.136\out\src\server.js --node-ipc --clientProcessId=2556 0 112 4852 "C:\Users\kisho\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node --max-old-space-size=3072 "c:\Users\kisho\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js" --serverMode partialSemantic --useInferredProjectPerProjectRoot --disableAutomaticTypingAcquisition --cancellationPipeName C:\Users\kisho\AppData\Local\Temp\vscode-typescript\a5a1dad79041ca1a89d1\tscancellation-de420007f08caef03fa3.tmp* --globalPlugins typescript-vscode-sh-plugin --pluginProbeLocations "c:\Users\kisho\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\typescript-language-features" --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation 0 519 12712 "C:\Users\kisho\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node --max-old-space-size=3072 "c:\Users\kisho\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js" --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName C:\Users\kisho\AppData\Local\Temp\vscode-typescript\a5a1dad79041ca1a89d1\tscancellation-f86bb5811054522a7642.tmp* --globalPlugins typescript-vscode-sh-plugin --pluginProbeLocations "c:\Users\kisho\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\typescript-language-features" --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation 0 99 11872 "C:\Users\kisho\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node "c:/Users/kisho/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/node_modules/typescript/lib/typingsInstaller.js" --globalTypingsCacheLocation C:/Users/kisho/AppData/Local/Microsoft/TypeScript/4.4 --enableTelemetry --typesMapLocation "c:/Users/kisho/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/node_modules/typescript/lib/typesMap.json" --validateDefaultNpmLocation 0 59 7580 watcherServiceNSFW 0 22 4632 crashpad-handler 0 307 4744 gpu-process 0 37 8892 utility 0 72 12844 utility 0 6 13020 "C:\Program Files\Google\Drive File Stream\53.0.8.0\crashpad_handler.exe" --database=C:\Users\kisho\AppData\Local\Google\DriveFS\Crashpad --url=https://clients2.google.com/cr/report --annotation=application=Code.exe --annotation=prod=DriveFS --annotation=ver=53.0.8.0 --initial-client-data=0x12f0,0x12f4,0x12f8,0x12ec,0x12fc,0x7fff4c051930,0x7fff4c051940,0x7fff4c051950 0 86 14188 window (Issue Reporter) ```
Workspace Info ``` | Window (IERC721.sol - New folder - Visual Studio Code) | Folder (New folder): 228 files | File types: json(52) js(30) jsx(27) md(5) sh(4) css(4) png(4) yml(2) | sol(2) env(2) | Conf files: package.json(5) dockerfile(2) settings.json(1) gulp.js(1); ```
Extensions (11) Extension|Author (truncated)|Version ---|---|--- better-comments|aar|2.1.0 bracket-pair-colorizer-2|Coe|0.2.1 es7-react-js-snippets|dsz|3.1.1 vsc-material-theme-icons|equ|1.2.2 prettier-vscode|esb|9.0.0 code-runner|for|0.11.6 solidity|Jua|0.0.136 vscode-language-bab el|mgm|0.0.35 cpptools|ms-|1.7.1 vsliveshare|ms-|1.0.5090 LiveServer|rit|5.6.1
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 pythontb:30283811 pythonptprofiler:30281270 vsdfh931:30280409 vshan820:30294714 vstes263:30335439 vscorecescf:30384386 pythondataviewer:30285071 vscod805cf:30301675 pythonvspyt200:30340761 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 pythonrunftest32:30373476 pythonf5test824:30373475 javagetstartedt:30391933 pythonvspyt187:30373474 vsaa593cf:30376535 pythonvs932cf:30408637 vscop804:30404766 vs360cf:30404996 vsrem710:30405998 vscexrecpromp3c:30407761 ```

Profile-20211207T151238.zip

gjsjohnmurray commented 2 years ago

Does the Start Extension Bisect command help you identify an extension causing the problem?

kishore881 commented 2 years ago

Nope. Issues still persist even with all extensions disabled. It might be something with vscode itself.

bpasero commented 2 years ago

Can you try to reproduce with our nightly insider builds? You can give our preview releases a try from: https://code.visualstudio.com/insiders/

deepak1556 commented 2 years ago

If the issue persists with insiders, please attach the perf profiles following the steps at

https://github.com/microsoft/vscode/wiki/Performance-Issues#visual-studio-code-is-sluggish https://github.com/microsoft/vscode/wiki/Performance-Issues#visual-studio-code-starts-up-slowly

kishore881 commented 2 years ago

The issue seemed to be resolved after a couple of days and then recently after updating vscode (don't remember the exact version info) it became sluggish for some time but at the time of writing this, things are working fine. I will try the insider builds too if the issue occurs again.

bpasero commented 2 years ago

👍