microsoft / vscode

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

Git gets extremely slow when I have multiple files open #191293

Closed itse4elhaam closed 1 year ago

itse4elhaam commented 1 year ago

Type: Performance Issue

It happens often when I open alot of tabs in my vscode, it shows itself as unresponsive and causes issues with other extensions too.

VS Code version: Code 1.81.1 (6c3e3dba23e8fadc360aed75ce363ba185c49794, 2023-08-09T22:22:42.175Z) OS version: Windows_NT x64 10.0.19045 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-4600U CPU @ 2.10GHz (4 x 2694)| |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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|15.91GB (7.59GB free)| |Process Argv|. --crash-reporter-id b7ff4f1f-c47a-4d7d-8606-6ea78ddb60d1| |Screen Reader|no| |VM|0%|
Process Info ``` CPU % Mem MB PID Process 1 96 16312 code main 0 91 2732 ptyHost 0 6 5876 conpty-agent 0 79 19460 C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command "try { . \"c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\contrib\terminal\browser\media\shellIntegration.ps1\" } catch {}" 0 97 3224 shared-process 0 39 5348 utility-network-service 0 25 7164 crashpad-handler 0 186 9036 gpu-process 0 62 10472 fileWatcher [1] 0 243 15180 window [1] (Running Extensions - zing - Visual Studio Code) 1 95 18508 window [2] (Issue Reporter) 0 146 19772 extensionHost [1] 0 208 2664 electron-nodejs ("C:\Program Files\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node c:\Users\toshiba\.vscode\extensions\angular.ng-template-16.1.8\server --logToConsole --ngProbeLocations "c:\Users\toshiba\.vscode\extensions\angular.ng-template-16.1.8,d:\Coding\Projects\Practice Projects\mean.projects\zing" --includeAutomaticOptionalChainCompletions --includeCompletionsWithSnippetText --tsProbeLocations ",c:\Users\toshiba\.vscode\extensions\angular.ng-template-16.1.8,d:\Coding\Projects\Practice Projects\mean.projects\zing" --node-ipc --clientProcessId=19772) 0 85 3504 electron-nodejs ("C:\Program Files\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node --max-old-space-size=3072 c:\Users\toshiba\.vscode\extensions\ms-vscode.vscode-typescript-next-5.3.20230823\node_modules\typescript\lib\tsserver.js --serverMode partialSemantic --useInferredProjectPerProjectRoot --disableAutomaticTypingAcquisition --cancellationPipeName C:\Users\toshiba\AppData\Local\Temp\vscode-typescript\057fba323a9cf836244d\tscancellation-5c85a83675c9e6764256.tmp* --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation --useNodeIpc) 0 69 4048 electron-nodejs ("C:\Program Files\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node "c:\Program Files\Microsoft VS Code\resources\app\extensions\json-language-features\server\dist\node\jsonServerMain" --node-ipc --clientProcessId=19772) 0 124 8056 electron-nodejs ("C:\Program Files\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node c:\Users\toshiba\.vscode\extensions\bradlc.vscode-tailwindcss-0.9.13\dist\tailwindServer.js --node-ipc --clientProcessId=19772) 0 78 11172 electron-nodejs ("C:\Program Files\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node "c:\Program Files\Microsoft VS Code\resources\app\extensions\html-language-features\server\dist\node\htmlServerMain" --node-ipc --clientProcessId=19772) 0 130 14632 electron-nodejs ("C:\Program Files\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node c:\Users\toshiba\.vscode\extensions\streetsidesoftware.code-spell-checker-2.20.5\packages\_server\dist\main.js --node-ipc --clientProcessId=19772) 0 64 15072 electron-nodejs ("C:\Program Files\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node "c:\Program Files\Microsoft VS Code\resources\app\extensions\css-language-features\server\dist\node\cssServerMain" --node-ipc --clientProcessId=19772) 0 74 15268 electron-nodejs ("C:\Program Files\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node c:\Users\toshiba\.vscode\extensions\dbaeumer.vscode-eslint-2.4.2\server\out\eslintServer.js --node-ipc --clientProcessId=19772) 0 160 18312 electron-nodejs ("C:\Program Files\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node --max-old-space-size=3072 c:\Users\toshiba\.vscode\extensions\ms-vscode.vscode-typescript-next-5.3.20230823\node_modules\typescript\lib\tsserver.js --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName C:\Users\toshiba\AppData\Local\Temp\vscode-typescript\057fba323a9cf836244d\tscancellation-588bfb72efaeaba48ca6.tmp* --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation --useNodeIpc) 0 68 7000 electron-nodejs ("C:\Program Files\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node c:/Users/toshiba/.vscode/extensions/ms-vscode.vscode-typescript-next-5.3.20230823/node_modules/typescript/lib/typingsInstaller.js --globalTypingsCacheLocation C:/Users/toshiba/AppData/Local/Microsoft/TypeScript/5.3 --enableTelemetry --typesMapLocation c:/Users/toshiba/.vscode/extensions/ms-vscode.vscode-typescript-next-5.3.20230823/node_modules/typescript/lib/typesMap.json --validateDefaultNpmLocation) 0 68 20536 electron-nodejs ("C:\Program Files\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node c:\Users\toshiba\.vscode\extensions\formulahendry.auto-rename-tag-0.1.10\packages\server\dist\serverMain.js --node-ipc --clientProcessId=19772) ```
Workspace Info ``` | Window (Running Extensions - zing - Visual Studio Code) | Folder (zing): 352 files | File types: json(313) pack(7) ts(5) css(3) html(3) old(1) | editorconfig(1) gitignore(1) md(1) gitkeep(1) | Conf files: launch.json(1) tasks.json(1) package.json(1) | tsconfig.json(1) | Launch Configs: chrome(2); ```
Extensions (35) Extension|Author (truncated)|Version ---|---|--- better-comments|aar|3.0.2 arepl|alm|2.0.5 ng-template|Ang|16.1.8 vscode-tailwindcss|bra|0.9.13 vscode-toggle-quotes|Bri|0.3.6 simple-react-snippets|bur|1.2.7 npm-intellisense|chr|1.4.4 path-intellisense|chr|2.8.4 vscode-eslint|dba|2.4.2 vscode-go-syntax|dun|0.0.18 prettier-vscode|esb|10.1.0 auto-rename-tag|for|0.1.10 code-runner|for|0.12.0 vscode-graphql|Gra|0.8.17 vscode-graphql-syntax|Gra|1.2.2 CppSnippets|har|0.0.15 vscode-react-typescript|inf|1.3.1 better-cpp-syntax|jef|1.17.2 vscode-language-babel|mgm|0.0.39 remote-wsl|ms-|0.81.0 cpptools|ms-|1.17.4 cpptools-extension-pack|ms-|1.3.0 vscode-typescript-next|ms-|5.3.20230824 material-icon-theme|PKi|4.29.0 tsimporter|pmn|2.0.1 vscode-thunder-client|ran|2.10.5 html-to-jsx|ria|0.0.1 LiveServer|rit|5.7.9 theme-check-vscode|Sho|1.10.0 code-spell-checker|str|2.20.5 even-better-toml|tam|0.19.2 vscode-icons|vsc|12.5.0 vscode-wakatime|Wak|24.2.2 console-ninja|Wal|0.0.206 JavaScriptSnippets|xab|1.8.0 (2 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscoreces:30445986 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 pythonvs932:30410667 py29gd2263cf:30792227 vsclangdf:30486550 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyone:30548225 vscccc:30803845 3biah626:30602489 f6dab269:30613381 showlangstatbar:30737416 03d35959:30757346 pythonfmttext:30731395 fixshowwlkth:30771522 showindicator:30805244 pythongtdpath:30769146 i26e3531:30792625 gsofa:30804715 pythonnosmt12:30797651 pythonidxpt:30805730 pythonnoceb:30805159 asynctok:30821568 dsvsc013:30795093 dsvsc014:30804076 diffeditorv2:30821572 ```
lszomoru commented 1 year ago

/gifPlease

vscodenpa commented 1 year ago

Thanks for reporting this issue! Unfortunately, it's hard for us to understand what issue you're seeing. Please help us out by providing a screen recording showing exactly what isn't working as expected. While we can work with most standard formats, .gif files are preferred as they are displayed inline on GitHub. You may find https://gifcap.dev helpful as a browser-based gif recording tool.

If the issue depends on keyboard input, you can help us by enabling screencast mode for the recording (Developer: Toggle Screencast Mode in the command palette). Lastly, please attach this file via the GitHub web interface as emailed responses will strip files out from the issue.

Happy coding!

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!