Skip to content

[Feature] Draggable sash to resize the sidebar "Opened files" section #5685

Closed

Description

@VictorVow

Summary

Add a draggable sash under the "Opened files" section in the sidebar so it can show more than just four rows.

Problem it solves

The Opened files section is fixed at four rows (max-height: 112px), when there are more than four files open the rest are hidden unless you use the small scrollbar. #5353 asked for this and was closed, and #5473 tried removing the cap, which was closed because the tab bar already shows every file. That review did mention a sash as the better fix though:

A draggable sash between the two sections. That is VS Code's real answer to "how much room should Open Editors get", but it needs persistence, min/max clamping and a drag affordance — its own PR.

Proposed solution

  • Once more than four files are open, show a thin handle under the list (same hover line as the sidebar width drag bar).
  • Dragging it changes the list's height, clamped between four rows and the height of the rows themselves, and always leaving room for the folder tree.
  • The height is saved in localStorage like the section collapse state and sidebar width (Sidebar collapse state memory inconsistant #2421), so it survives collapsing the sidebar and restarting.
  • With four or fewer files there's no handle and nothing changes, so the default layout is the same as now.

I have this working with an e2e test and can open a PR if this sounds OK.

Alternatives considered

Additional context

Before (develop) / after (with the sash):

Image Image

Activity

  1. added
    🦄 feature request
    on Oct 11, 2026
  2. added a commit that references this issue on Oct 21, 2026
  3. added a commit that references this issue on Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🦄 feature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions