Skip to content

Dragging a pinned editor tab to the start of the regular tabs row places it at the end of pinned tabs instead #313987

Closed

Description

@n-gist

When dragging an editor tab from the pinned tabs row and dropping it at the beginning of the regular (unpinned) tabs row, the tab is not moved as expected.
Instead of becoming the first tab in the regular tabs row, it is placed at the end of the pinned tabs row.
In the screencapture the focus.ts tab is dragged around to illustrate the issue.

Image

Activity

  1. added
    bug
    workbench-tabs
    on May 5, 2026
  2. added
    confirmed
    on May 12, 2026
  3. dobbydobap commented on Jul 7, 2026

    @dobbydobap
    Contributor

    took a look in the two-row layout, dropping a pinned tab at the start of the unpinned row targets stickyCount, but the same-group order-preserving decrement lowers it to stickyCount-1, which the group model still treats as sticky (it only unsticks when toIndex > stickyCount-1), so it stays pinned at the end. opened a PR that unsticks it after the move when dropped onto the unpinned row.

  4. added
    unreleased
    on Jul 7, 2026
  5. added this to the 1.129.0 milestone on Jul 7, 2026
  6. added
    insiders-released
    and removed
    unreleased
    on Jul 7, 2026
  7. meganrogge commented on Jul 13, 2026

    @meganrogge
    Collaborator

    Benjamin Christopher Simmonds (@benibenj) now when I move a pinned tab, it becomes unpinned. Is that expected?

  8. locked and limited conversation to collaborators on Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugconfirmedinsiders-releasedverifiedworkbench-tabs

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions