microsoft / vscode

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

WSL: Cross-file search keeps displaying old results #187353

Closed malazri1 closed 11 months ago

malazri1 commented 1 year ago

Type: Bug

When I'm using WSL remote (WSL-2 with Ubunto 20.04) I face an issue with cross file searches. When I search for something then change the search terms I keep seeing the old results displayed. This issue happens more frequently when: 1- I change the terms while the first search is still pending 2- The first search terms include non-word characters (such as double quotes ")

In addition, file searching in this remote is very slow and cannot be stopped. Since searching starts automatically once the user types anything, if the user types a commonly-used character (like double quotes or hyphen, or just any common letter), the search will start and will not be restarted as the user adds more terms until that first search is over. Sometimes the search panel freezes until that search is complete.

Both of these issues do not occur when I'm using WSL-1 (with Ubuntu 18.04) or when using native windows environment.

VS Code version: Code 1.79.2 (695af097c7bd098fbf017ce3ac85e09bbc5dda06, 2023-06-14T08:57:04.379Z) OS version: Windows_NT x64 10.0.19043 Modes: Remote OS version: Linux x64 5.10.16.3-microsoft-standard-WSL2

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 x 2808)| |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.89GB (2.96GB free)| |Process Argv|--crash-reporter-id c19acdb8-f303-410e-b192-31c4c575039c| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|WSL: Ubuntu-20.04| |OS|Linux x64 5.10.16.3-microsoft-standard-WSL2| |CPUs|Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 x 2808)| |Memory (System)|12.39GB (11.62GB free)| |VM|0%|
Extensions (51) Extension|Author (truncated)|Version ---|---|--- language-x86-64-assembly|13x|3.0.0 html-snippets|abu|0.2.1 aws-toolkit-vscode|ama|1.80.0 vscode-browser-preview|auc|0.7.2 vscode-sql-beautify|cla|0.3.19 codeium|Cod|1.2.44 vscode-html-css|ecm|1.13.1 prettier-vscode|esb|9.19.0 pip-packages|etm|0.4.3 copilot|Git|1.95.233 go|gol|0.39.0 timing|Haa|2.7.2 vscode-browser-sync|jas|1.3.1 better-cpp-syntax|jef|1.17.2 hex-fmt|ker|1.0.0 vs-color-picker|lih|1.0.0 debug-tracker-vscode|mcu|0.0.15 HTMLHint|mka|0.10.0 vscode-docker|ms-|1.25.2 isort|ms-|2023.10.0 python|ms-|2023.12.0 vscode-pylance|ms-|2023.7.10 jupyter|ms-|2023.5.1101742258 jupyter-keymap|ms-|1.1.2 jupyter-renderers|ms-|1.0.15 vscode-jupyter-cell-tags|ms-|0.1.8 vscode-jupyter-slideshow|ms-|0.1.5 remote-containers|ms-|0.299.0 remote-ssh|ms-|0.102.0 remote-ssh-edit|ms-|0.86.0 remote-wsl|ms-|0.79.5 vscode-remote-extensionpack|ms-|0.24.0 cmake-tools|ms-|1.14.34 cpptools|ms-|1.16.3 cpptools-extension-pack|ms-|1.3.0 hexeditor|ms-|1.9.11 makefile-tools|ms-|0.7.0 remote-explorer|ms-|0.4.0 remote-server|ms-|1.2.1 nrf-connect|nor|2023.6.345 nrf-devicetree|nor|2023.6.108 nrf-kconfig|nor|2023.6.51 nrf-terminal|nor|2023.6.78 material-icon-theme|PKi|4.28.0 gruvbox-material|sai|6.5.2 html5-boilerplate|sid|1.1.1 html-preview-vscode|tht|0.2.5 gnu-mapfiles|tro|1.1.0 cmake|twx|0.0.17 bootstrap-v4-snippets|Zac|1.1.3 html-css-class-completion|Zig|1.20.0 (6 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 pythonvs932:30410667 py29gd2263cf:30784848 vsclangdc:30486549 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyone:30548225 vscccc:30610679 2e4cg342:30602488 pyind779:30671433 f6dab269:30613381 pythonsymbol12:30671437 a9j8j154:30646983 showlangstatbar:30737416 vsctsb:30748421 pythonms35:30701012 03d35959:30757346 7ij38806:30736111 pythonfmttext:30731395 pythoncmvfstrcf:30756944 fixshowwlkth:30771522 hideindicator:30785051 pythongtdpath:30769146 i26e3531:30780429 pythonnosmt12:30779714 pythonidxpt:30784022 pythonnocebcf:30776496 ```
andreamah commented 12 months ago

Can you provide a screen recording of this issue? Does this intermittently happen or always happen?

VSCodeTriageBot commented 11 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!