Skip to content

Search pane compacts folders despite "explorer.compactFolders": false in settings #301832

Description

@StasD

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:

  1. Set explorer.compactFolders setting to false.
  2. Check that it has no effect in the Search panel when "View as Tree" is enabled.

Activity

  1. added
    bug
    confirmed
    on Mar 31, 2026
  2. dobbydobap commented on Jul 13, 2026

    @dobbydobap
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugconfirmed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions