microsoft / vscode

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

Filter problem in File Explorer (Advanced tree navigation) #164291

Closed sergenik closed 2 years ago

sergenik commented 2 years ago

Type: Bug

Filter doesn't return all file names when folders are collapsed. It may say "no elements found"

How to use filter: https://code.visualstudio.com/docs/getstarted/userinterface#_advanced-tree-navigation

VS Code version: Code 1.71.2 (74b1f979648cc44d385a2286793c226e611f59e7, 2022-09-14T21:03:37.738Z) OS version: Windows_NT x64 10.0.19044 Modes: Sandboxed: No

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 3 2200G with Radeon Vega Graphics (4 x 3493)| |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
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|undefined| |Memory (System)|14.93GB (4.41GB free)| |Process Argv|--crash-reporter-id 56c31229-4a1f-4082-8f06-6aecf59c3da4| |Screen Reader|no| |VM|0%|
Extensions (32) Extension|Author (truncated)|Version ---|---|--- aws-toolkit-vscode|ama|1.52.0 ng-template|Ang|14.2.0 atlascode|atl|2.10.12 vscode-intelephense-client|bme|1.8.2 vscode-as3mxml|bow|1.14.1 vscode-nextgenas|bow|2.0.0 vscode-swf-debug|bow|1.6.0 vscode-tailwindcss|bra|0.9.1 vscode-eslint|dba|2.2.6 gitlens|eam|12.2.2 vscode-npm-script|eg2|0.3.29 prettier-vscode|esb|9.9.0 vscode-jest-runner|fir|0.4.58 shell-format|fox|7.2.2 vscode-mocha-test-adapter|hbe|2.14.1 vscode-test-explorer|hbe|2.21.1 vscode-angular2-emmet|jak|2.0.3 solidity|Jua|0.0.141 rainbow-csv|mec|3.2.0 git-graph|mhu|1.30.0 vscode-docker|ms-|1.22.2 remote-containers|ms-|0.255.4 test-adapter-converter|ms-|0.1.6 vscode-typescript-tslint-plugin|ms-|1.3.4 vsliveshare|ms-|1.0.5739 angular-console|nrw|17.23.3 vscode-phpunit|rec|2.0.76 vscode-yaml|red|1.10.1 LiveServer|rit|5.7.9 vscode-scss-formatter|sib|2.4.3 code-spell-checker|str|2.10.1 php-debug|xde|1.29.0
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492cf:30256860 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 pythondataviewer:30285071 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593cf:30376535 pythonvs932:30410667 cppdebug:30492333 vsclangdc:30486549 c4g48928:30535728 dsvsc012:30540252 azure-dev_surveyone:30548225 i497e931:30553904 pyindex848cf:30577861 nodejswelcome1cf:30587006 40g7c324:30573242 ```
vscodenpa commented 2 years ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.72.2. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

gjsjohnmurray commented 2 years ago

The link you gave states:

You can filter the currently visible files

This is a bit conservative. In fact, as long as you have previously expanded a folder since you opened the workspace it will be searched even if it is currently collapsed. But if it hasn't yet been expanded (sometimes referred to as "resolved") it won't be searched by the Find widget.

An alternative which searches filenames even if they are in a not-yet-resolved folder can be invoked with Ctrl/Cmd+p.

IllusionMH commented 2 years ago

Pretty sure it is duplicate of #66971

lramos15 commented 2 years ago

\duplicate #66971