microsoft / vscode

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

Search results shows files that are excluded #225048

Closed ofergr closed 3 months ago

ofergr commented 3 months ago

Type: Bug

  1. in a C project, search for a symbol name
  2. the search results also show results in excluded folder:

Here is the exclude section of the settings: "files.exclude": { "/.metadata/": true, "/.plugins/": true, "/.symTbl": true, "/.trunk/*out": true, "/*.c1": true, "*/.d": true, "/*.htm": true, "/*.html": true, "*/.log": true, "/*.pl": true, "*/.proj": true, "*/.txt": true },

VS Code version: Code 1.92.0 (b1c0a14de1414fcdaa400695b4db1c0799bc3124, 2024-07-31T23:26:45.634Z) OS version: Windows_NT x64 10.0.22631 Modes: Remote OS version: Linux x64 5.15.0-113-generic

System Info |Item|Value| |---|---| |CPUs|12th Gen Intel(R) Core(TM) i5-1235U (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)|31.69GB (11.83GB free)| |Process Argv|--crash-reporter-id 0b1491cf-2d77-483e-9188-88862c6a0d3c| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|SSH: 172.17.161.230| |OS|Linux x64 5.15.0-113-generic| |CPUs|Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz (4 x 2619)| |Memory (System)|15.50GB (11.00GB free)| |VM|0%|
Extensions (34) Extension|Author (truncated)|Version ---|---|--- better-comments|aar|3.0.2 Bookmarks|ale|13.5.0 vscode-drawio|hed|1.6.6 jupyter-keymap|ms-|1.1.2 remote-ssh|ms-|0.112.0 remote-ssh-edit|ms-|0.86.0 remote-explorer|ms-|0.4.3 material-icon-theme|PKi|5.8.0 swdc-vscode|sof|2.7.14 errorlens|use|3.20.0 mib|Ver|0.0.4 indented-block-highlighting|byi|1.0.7 githistory|don|0.6.20 xml|Dot|2.5.1 gitlens|eam|15.2.3 prettier-vscode|esb|10.4.0 copilot|Git|1.220.0 copilot-chat|Git|0.18.1 go|gol|0.42.0 cmake-language-support-vscode|jos|0.0.9 vscode-dotnet-runtime|ms-|2.1.1 debugpy|ms-|2024.10.0 python|ms-|2024.12.2 vscode-pylance|ms-|2024.8.1 cmake-tools|ms-|1.18.44 cpptools|ms-|1.21.6 cpptools-extension-pack|ms-|1.3.0 makefile-tools|ms-|0.9.10 vscode-thunder-client|ran|2.24.13 code-stats-vscode|riu|1.0.18 partial-diff|ryu|1.4.3 code-spell-checker|str|3.0.1 cmake|twx|0.0.17 file-size|zh9|1.0.0 (2 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 vscrp:30673768 a9j8j154:30646983 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonnoceb:30805159 asynctok:30898717 pythonregdiag2:30936856 pythonmypyd1:30879173 2e7ec940:31000449 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 g316j359:31013175 pythoncenvpt:31062603 a69g1124:31058053 dvdeprecation:31068756 dwnewjupytercf:31046870 2f103344:31071589 impr_priority:31102340 nativerepl2:31104044 refactort:31108082 ccplc:31103425 pythonrstrctxtcf:31103194 wkspc-onlycs-c:31111717 ```
ofergr commented 3 months ago

attached are extension logs, set in trace level extensionTelemetry.log exthost.log

andreamah commented 3 months ago

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

vs-code-engineering[bot] commented 3 months ago

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.

Happy Coding!