microsoft / vscode

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

Terminal is laggy #214754

Closed Anup30giri closed 5 months ago

Anup30giri commented 5 months ago

Type: Performance Issue

whenever i use clear the terminal, it takes forever to reload

VS Code version: Code 1.90.0 (89de5a8d4d6205e5b11647eb6a74844ca23d2573, 2024-06-04T19:33:54.889Z) OS version: Windows_NT x64 10.0.22631 Modes: Remote OS version: Linux x64 5.15.133.1-microsoft-standard-WSL2

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 5 5500U with Radeon Graphics (12 x 2096)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
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_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|15.36GB (1.89GB free)| |Process Argv|--folder-uri file:///d%3A/Work/no-code-web --crash-reporter-id 32efa3ef-4cd9-4239-bab6-5be9ca662540| |Screen Reader|no| |VM|33%| |Item|Value| |---|---| |Remote|WSL: Ubuntu-22.04| |OS|Linux x64 5.15.133.1-microsoft-standard-WSL2| |CPUs|AMD Ryzen 5 5500U with Radeon Graphics (12 x 0)| |Memory (System)|7.44GB (4.97GB free)| |VM|0%|
Process Info ``` CPU % Mem MB PID Process 0 104 12832 code main 0 298 1416 window [2] (github.py - nocode-backend [WSL: Ubuntu-22.04] - Visual Studio Code) 0 191 1644 extensionHost [1] 0 158 4600 electron-nodejs (eslintServer.js ) 0 102 5108 electron-nodejs (tsserver.js ) 0 254 9052 electron-nodejs (tsserver.js ) 0 85 9104 electron-nodejs (typingsInstaller.js typesMap.js ) 0 94 11192 electron-nodejs (tailwindServer.js ) 0 77 17032 electron-nodejs (serverMain.js ) 0 123 4804 extensionHost [2] 0 88 14912 electron-nodejs (wslDaemon.js ) 0 10 8580 C:\Windows\System32\wsl.exe -d Ubuntu-22.04 sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" 89de5a8d4d6205e5b11647eb6a74844ca23d2573 stable code-server .vscode-server --host=127.0.0.1 --port=0 --connection-token=353316432-3524149933-2014634232-3885876766 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=all' 0 7 20148 C:\Windows\System32\wsl.exe -d Ubuntu-22.04 sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" 89de5a8d4d6205e5b11647eb6a74844ca23d2573 stable code-server .vscode-server --host=127.0.0.1 --port=0 --connection-token=353316432-3524149933-2014634232-3885876766 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=all' 0 8 16852 C:\Windows\System32\wsl.exe -d Ubuntu-22.04 sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" 89de5a8d4d6205e5b11647eb6a74844ca23d2573 stable code-server .vscode-server --host=127.0.0.1 --port=0 --connection-token=353316432-3524149933-2014634232-3885876766 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=all' 0 8 21304 --distro-id {46c5ef87-b8b0-40b8-aa2d-99f0cf64966f} --vm-id {e1c39fc1-e151-485d-9148-47154435c759} --handle 728 --event 760 --parent 764 0 8 21492 C:\Windows\system32\conhost.exe 0x4 0 6 21232 C:\Windows\system32\conhost.exe 0x4 0 11 14892 C:\Windows\System32\wsl.exe -d Ubuntu-22.04 -e /home/augustus17/.vscode-server/bin/89de5a8d4d6205e5b11647eb6a74844ca23d2573/node -e "const net = require('net'); process.stdin.pause(); const client = net.createConnection({ host: '127.0.0.1', port: 45983 }, () => { client.pipe(process.stdout); process.stdin.pipe(client); }); client.on('close', function (hadError) { console.error(hadError ? 'Remote close with error' : 'Remote close'); process.exit(hadError ? 1 : 0); }); client.on('error', function (err) { process.stderr.write(err && (err.stack || err.message) || String(err)); });" 0 11 24592 C:\Windows\system32\conhost.exe 0x4 0 8 24696 C:\Windows\System32\wsl.exe -d Ubuntu-22.04 -e /home/augustus17/.vscode-server/bin/89de5a8d4d6205e5b11647eb6a74844ca23d2573/node -e "const net = require('net'); process.stdin.pause(); const client = net.createConnection({ host: '127.0.0.1', port: 45983 }, () => { client.pipe(process.stdout); process.stdin.pipe(client); }); client.on('close', function (hadError) { console.error(hadError ? 'Remote close with error' : 'Remote close'); process.exit(hadError ? 1 : 0); }); client.on('error', function (err) { process.stderr.write(err && (err.stack || err.message) || String(err)); });" 0 10 24724 C:\Windows\System32\wsl.exe -d Ubuntu-22.04 -e /home/augustus17/.vscode-server/bin/89de5a8d4d6205e5b11647eb6a74844ca23d2573/node -e "const net = require('net'); process.stdin.pause(); const client = net.createConnection({ host: '127.0.0.1', port: 45983 }, () => { client.pipe(process.stdout); process.stdin.pipe(client); }); client.on('close', function (hadError) { console.error(hadError ? 'Remote close with error' : 'Remote close'); process.exit(hadError ? 1 : 0); }); client.on('error', function (err) { process.stderr.write(err && (err.stack || err.message) || String(err)); });" 0 9 24796 --distro-id {46c5ef87-b8b0-40b8-aa2d-99f0cf64966f} --vm-id {e1c39fc1-e151-485d-9148-47154435c759} --handle 748 --event 764 --parent 768 0 13 24832 C:\Windows\system32\conhost.exe 0x4 0 11 24340 C:\Windows\System32\wsl.exe -d Ubuntu-22.04 -e /home/augustus17/.vscode-server/bin/89de5a8d4d6205e5b11647eb6a74844ca23d2573/node -e "const net = require('net'); process.stdin.pause(); const client = net.createConnection({ host: '127.0.0.1', port: 45983 }, () => { client.pipe(process.stdout); process.stdin.pipe(client); }); client.on('close', function (hadError) { console.error(hadError ? 'Remote close with error' : 'Remote close'); process.exit(hadError ? 1 : 0); }); client.on('error', function (err) { process.stderr.write(err && (err.stack || err.message) || String(err)); });" 0 11 17280 C:\Windows\system32\conhost.exe 0x4 0 8 23660 C:\Windows\System32\wsl.exe -d Ubuntu-22.04 -e /home/augustus17/.vscode-server/bin/89de5a8d4d6205e5b11647eb6a74844ca23d2573/node -e "const net = require('net'); process.stdin.pause(); const client = net.createConnection({ host: '127.0.0.1', port: 45983 }, () => { client.pipe(process.stdout); process.stdin.pipe(client); }); client.on('close', function (hadError) { console.error(hadError ? 'Remote close with error' : 'Remote close'); process.exit(hadError ? 1 : 0); }); client.on('error', function (err) { process.stderr.write(err && (err.stack || err.message) || String(err)); });" 0 10 21188 C:\Windows\System32\wsl.exe -d Ubuntu-22.04 -e /home/augustus17/.vscode-server/bin/89de5a8d4d6205e5b11647eb6a74844ca23d2573/node -e "const net = require('net'); process.stdin.pause(); const client = net.createConnection({ host: '127.0.0.1', port: 45983 }, () => { client.pipe(process.stdout); process.stdin.pipe(client); }); client.on('close', function (hadError) { console.error(hadError ? 'Remote close with error' : 'Remote close'); process.exit(hadError ? 1 : 0); }); client.on('error', function (err) { process.stderr.write(err && (err.stack || err.message) || String(err)); });" 0 9 22760 --distro-id {46c5ef87-b8b0-40b8-aa2d-99f0cf64966f} --vm-id {e1c39fc1-e151-485d-9148-47154435c759} --handle 736 --event 752 --parent 756 0 13 4964 C:\Windows\system32\conhost.exe 0x4 0 87 22504 electron-nodejs (serverMain.js ) 0 87 4820 fileWatcher [2] 0 345 5596 window [1] (connector.ts - no-code-web - Visual Studio Code) 0 92 7288 fileWatcher [1] 0 29 10688 crashpad-handler 0 227 12876 gpu-process 0 105 13224 window [3] (Issue Reporter) 0 85 13632 ptyHost 0 5 4032 "C:\Program Files\Git\bin\bash.exe" --init-file "c:\Users\MSI\AppData\Local\Programs\Microsoft VS Code\resources\app/out/vs/workbench/contrib/terminal/browser/media/shellIntegration-bash.sh" 0 9 17956 "C:\Program Files\Git\bin\..\usr\bin\bash.exe" --init-file "c:\Users\MSI\AppData\Local\Programs\Microsoft VS Code\resources\app/out/vs/workbench/contrib/terminal/browser/media/shellIntegration-bash.sh" 0 6 13084 conpty-agent 0 6 17412 conpty-agent 0 5 19040 "C:\Program Files\Git\bin\bash.exe" --init-file "c:\Users\MSI\AppData\Local\Programs\Microsoft VS Code\resources\app/out/vs/workbench/contrib/terminal/browser/media/shellIntegration-bash.sh" 0 11 14816 "C:\Program Files\Git\bin\..\usr\bin\bash.exe" --init-file "c:\Users\MSI\AppData\Local\Programs\Microsoft VS Code\resources\app/out/vs/workbench/contrib/terminal/browser/media/shellIntegration-bash.sh" 0 109 14176 shared-process 0 45 16740 utility-network-service Remote: WSL: Ubuntu-22.04 CPU % Mem MB PID Process 0 0 525 remote agent 0 0 726 fileWatcher 0 0 797 extension-host 0 0 1496 /home/augustus17/.cache/pypoetry/virtualenvs/{{cookiecutter-repo-name}}-ipiXK3EL-py3.10/bin/python /home/augustus17/.vscode-server/extensions/charliermarsh.ruff-2024.26.0-linux-x64/bundled/tool/server.py 0 0 1961 /home/augustus17/.vscode-server/bin/89de5a8d4d6205e5b11647eb6a74844ca23d2573/node /home/augustus17/.vscode-server/extensions/ms-python.vscode-pylance-2024.6.1/dist/server.bundle.js --cancellationReceive=file:36ce2aff2632f1e39f07d4d5aa59a956ef66b386b3 --node-ipc --clientProcessId=797 0 0 825 ptyHost 0 0 1485 /bin/bash --init-file /home/augustus17/.vscode-server/bin/89de5a8d4d6205e5b11647eb6a74844ca23d2573/out/vs/workbench/contrib/terminal/browser/media/shellIntegration-bash.sh 0 0 1962 /bin/bash --init-file /home/augustus17/.vscode-server/bin/89de5a8d4d6205e5b11647eb6a74844ca23d2573/out/vs/workbench/contrib/terminal/browser/media/shellIntegration-bash.sh 0 0 14799 /bin/bash --init-file /home/augustus17/.vscode-server/bin/89de5a8d4d6205e5b11647eb6a74844ca23d2573/out/vs/workbench/contrib/terminal/browser/media/shellIntegration-bash.sh 0 0 27516 /usr/lib/postgresql/14/bin/psql -U postgres -d nocode -h localhost 0 0 49922 sh -c pager 0 0 49923 pager 0 0 50940 /bin/sh -c /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command= 0 0 50941 /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command= ```
Workspace Info ``` | Window (connector.ts - no-code-web - Visual Studio Code) | Folder (no-code-web): 465 files | File types: js(92) tsx(77) gz(69) json(34) ts(26) pack(16) woff2(7) | old(6) gitignore(2) css(2) | Conf files: package.json(3) settings.json(1) dockerfile(1) | tsconfig.json(1) | Remote: WSL: Ubuntu-22.04| Folder (nocode-backend): 143 files| File types: pyc(46) py(46) yaml(2) sh(2) env(1) example(1) gitignore(1) | md(1) mako(1) ini(1) | Conf files: dockerfile(2) makefile(1); ```
Extensions (37) Extension|Author (truncated)|Version ---|---|--- terraform|4op|0.2.5 no-code-extension|ade|0.0.1 amazon-q-vscode|ama|1.8.0 aws-toolkit-vscode|ama|3.9.0 vscode-intelephense-client|bme|1.10.4 vscode-tailwindcss|bra|0.10.5 ruff|cha|2024.26.0 path-intellisense|chr|2.9.0 vscode-eslint|dba|2.4.4 es7-react-js-snippets|dsz|4.4.3 gitlens|eam|15.1.0 vscode-html-css|ecm|2.0.9 prettier-vscode|esb|10.4.0 auto-close-tag|for|0.5.15 auto-rename-tag|for|0.1.10 code-runner|for|0.12.2 terraform|has|2.30.2 template-string-converter|meg|0.6.1 vscode-docker|ms-|1.29.1 black-formatter|ms-|2024.2.0 debugpy|ms-|2024.6.0 python|ms-|2024.8.0 vscode-pylance|ms-|2024.6.1 remote-ssh|ms-|0.110.1 remote-ssh-edit|ms-|0.86.0 remote-wsl|ms-|0.88.2 remote-explorer|ms-|0.4.3 vscode-typescript-next|ms-|5.5.20240505 laravel-blade|one|1.36.1 material-icon-theme|PKi|5.3.0 LiveServer|rit|5.7.9 vscode-blade-formatter|shu|0.24.2 svelte-vscode|sve|108.5.0 JavaScriptSnippets|xab|1.8.0 pretty-ts-errors|Yoa|0.5.4 material-theme|zhu|3.17.2 html-css-class-completion|Zig|1.20.0
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 vscaat:30438848 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pythonmypyd1:30879173 pythoncet0:30885854 h48ei257:31000450 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 jchc7451:31067544 showvideot:31016892 chatpanelc:31048052 dsvsc021:30996838 da93g388:31013173 pythoncenvpt:31062603 a69g1124:31058053 dvdeprecation:31068756 pythonprt:31056678 dwnewjupyter:31046869 26j00206:31048877 ```
gjsjohnmurray commented 5 months ago

Are you using git bash? If so please see the related pinned issue.

faniell commented 5 months ago

212090

meganrogge commented 5 months ago

/duplicate https://github.com/microsoft/vscode/issues/212090

already fixed in insider's