You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Search pane compacts folders despite "explorer.compactFolders": false in settings #301832
Does this issue occur when all extensions are disabled?: Yes
VS Code Version: 1.111.0
OS Version: macOS 26.3.1
I have the explorer.compactFolders setting set to false in the settings.json file:
"explorer.compactFolders": false,
, yet I still see compacted folders in the Search pane if I enable "View as Tree" there.
The search view should also respect this setting, or have its own similar one. If I disabled the "compact folders" in one place, sure I don't want to see them anywhere!
Steps to Reproduce:
Set explorer.compactFolders setting to false.
Check that it has no effect in the Search panel when "View as Tree" is enabled.
took a look, the search results tree never sets compressionEnabled, so it defaults to on and ignores explorer.compactFolders (the Explorer wires it up but Search doesn't). opening a PR that reads the setting the same way the Explorer does, with live updates.
Activity
dobbydobap commentedon Jul 13, 2026
took a look, the search results tree never sets
compressionEnabled, so it defaults to on and ignoresexplorer.compactFolders(the Explorer wires it up but Search doesn't). opening a PR that reads the setting the same way the Explorer does, with live updates.