microsoft / vscode

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

Search Results does not show all results #233679

Open dg00GT00 opened 2 weeks ago

dg00GT00 commented 2 weeks ago

Type: Bug

The search results do not show all query results even if the search limit is set to null or the limit is way beyond the expected search result count. Image

It looks like the result count has been truncated. Here is an example. When all the editors are closed and searching for a timestamp, I am present with 476 results. However, once the correspondent searched file is opened and the search is refreshed, the search count jumps to 4768 results Before file open before file open

Image after file open

VS Code version: Code 1.95.2 (e8653663e8840adaf45af01eab5c627a5af81807, 2024-11-07T11:07:22.054Z) OS version: Windows_NT x64 10.0.19045 Modes:

System Info |Item|Value| |---|---| |CPUs|12th Gen Intel(R) Core(TM) i5-1245U (12 x 2496)| |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
webnn: disabled_off| |Load (avg)|undefined| |Memory (System)|15.69GB (1.15GB free)| |Process Argv|C:\\Issues\\Japan\\34\\JPNEWPOS-4169\\36 --log info --crash-reporter-id 067d5305-00bf-474e-93f4-c566f2d3c6c0| |Screen Reader|no| |VM|0%|
Extensions (15) Extension|Author (truncated)|Version ---|---|--- Bookmarks|ale|13.5.0 gitlens|eam|15.6.3 prettier-vscode|esb|11.0.0 gc-excelviewer|Gra|4.2.62 vscode-peacock|joh|4.2.2 rainbow-csv|mec|3.12.0 git-graph|mhu|1.30.0 vscode-docker|ms-|1.29.3 cpptools|ms-|1.22.11 cpptools-extension-pack|ms-|1.3.0 hexeditor|ms-|1.11.1 powershell|ms-|2024.4.0 material-icon-theme|PKi|5.13.0 vscode-xml|red|0.27.1 code-spell-checker|str|3.0.1 (1 theme extensions excluded)
dg00GT00 commented 2 weeks ago

This issue is also related to #232482

roblourens commented 2 weeks ago

See https://github.com/microsoft/vscode/wiki/Search-Issues for troubleshooting tips

dg00GT00 commented 2 weeks ago

Hi @roblourens, I have already tried all the search-issue recommendations but no tip worked.

roblourens commented 2 weeks ago

Are you sure the missing file matches the "files to include" pattern? Note that open files will always be searched

dg00GT00 commented 2 weeks ago

Yes, I am sure. The result is the same even if the "files to include" is blank. The missing file matches are on the same file, so I expect that all results should be displayed even if the file was closed, once the partial result was already been shown.