microsoft / vscode

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

Search is extremely slow #205866

Closed generalustelaru closed 6 months ago

generalustelaru commented 6 months ago

Type: Performance Issue

For about a week I noticed that searching fails to find content it used to find quickly. The search also takes around a minute to return anything related to the search params.

VS Code version: Code 1.86.2 (903b1e9d8990623e3d7da1df3d33db3e42d80eda, 2024-02-13T19:40:56.878Z) OS version: Windows_NT x64 10.0.19045 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz (8 x 2304)| |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)|31.84GB (5.09GB free)| |Process Argv|--crash-reporter-id dab89f78-1276-4a26-8b34-c02870cb43f7| |Screen Reader|no| |VM|0%|
Process Info ``` CPU % Mem MB PID Process 0 82 12232 code main 0 58 7892 shared-process 0 257 12568 extensionHost [1] 0 21 7232 c:\Users\Adrian.Pop\.vscode\extensions\devsense.intelli-php-vscode-0.12.14619-win32-x64\out\server\intelliphp.ls 0 4 33884 C:\WINDOWS\system32\conhost.exe 0x4 0 16 8452 "C:\Users\Adrian.Pop\AppData\Local\Programs\Microsoft VS Code\Code.exe" "c:\Users\Adrian.Pop\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\json-language-features\server\dist\node\jsonServerMain" --node-ipc --clientProcessId=12568 0 37 9296 electron-nodejs (tsserver.js ) 0 15 27504 electron-nodejs (languageserver.js ) 0 10 33772 powershell.exe -NoProfile -ExecutionPolicy RemoteSigned -NoLogo -NoExit -Command - 0 4 42684 C:\WINDOWS\system32\conhost.exe 0x4 0 193 40128 c:\Users\Adrian.Pop\.vscode\extensions\devsense.phptools-vscode-1.44.14950-win32-x64\out\server\devsense.php.ls 0 4 45904 C:\WINDOWS\system32\conhost.exe 0x4 0 12 44612 electron-nodejs (bin.js ) 0 271 48108 electron-nodejs (tsserver.js ) 0 22 22152 electron-nodejs (typingsInstaller.js typesMap.js ) 0 67 55644 "C:\Users\Adrian.Pop\AppData\Local\Programs\Microsoft VS Code\Code.exe" "c:\Users\Adrian.Pop\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\html-language-features\server\dist\node\htmlServerMain" --node-ipc --clientProcessId=12568 0 21 22256 fileWatcher [1] 0 22 22844 ptyHost 0 6 10604 conpty-agent 0 4 11412 "C:\Program Files\Git\bin\bash.exe" --login -i 0 7 28724 "C:\Program Files\Git\bin\..\usr\bin\bash.exe" --login -i 1 1223 35128 window [1] (api-test.php - ems-claims-engine - Visual Studio Code) 0 6 35932 crashpad-handler 1 197 40756 gpu-process 0 93 41876 window [3] (Issue Reporter) 0 19 46832 utility-network-service ```
Workspace Info ``` | Window (api-test.php - ems-claims-engine - Visual Studio Code) | Folder (ems-claims-engine): more than 20539 files | File types: js(4777) php(4704) svg(2996) latte(2204) png(723) scss(403) | pdf(292) css(278) json(198) txt(171) | Conf files: dockerfile(5) launch.json(1) grunt.js(1) gulp.js(1) | makefile(1) package.json(1) tsconfig.json(1) | webpack.config.js(1) | Launch Configs: php(3); ```
Extensions (27) Extension|Author (truncated)|Version ---|---|--- atlascode|atl|3.0.10 jsoncrack-vscode|Ayk|2.0.2 composer-php-vscode|DEV|1.44.14997 intelli-php-vscode|DEV|0.12.14619 phptools-vscode|DEV|1.44.14950 profiler-php-vscode|DEV|1.44.14997 gitlens|eam|14.8.2 copilot|Git|1.162.0 copilot-chat|Git|0.12.2 copilot-labs|Git|0.17.1121 vscode-pull-request-github|Git|0.80.1 go|gol|0.41.0 todo-tree|Gru|0.0.226 latte|Kas|0.18.0 twig-language-2|mbl|0.9.4 vscode-docker|ms-|1.29.0 powershell|ms-|2024.0.0 indent-rainbow|ode|8.3.1 prisma|Pri|5.9.1 vscode-thunder-client|ran|2.17.8 vscode-yaml|red|1.14.0 synthwave-vscode|Rob|0.1.15 glassit|s-n|0.2.6 trailing-whitespace-fixer|ssi|1.0.13 svelte-vscode|sve|108.2.2 best-light-themes-pack|the|1.0.2 php-debug|xde|1.34.0 (23 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscorecescf:30445987 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:30899288 c4g48928:30535728 azure-dev_surveyone:30548225 a9j8j154:30646983 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 pythontbext0:30879054 accentitlementst:30887150 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 7j2b6412:30964151 ```
andreamah commented 6 months ago

Does this happen when you disable all extensions?

VSCodeTriageBot commented 6 months 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!

generalustelaru commented 6 months ago

Does this happen when you disable all extensions?

The problem cleared up a couple of days ago. I did not try to disable extensions.