Skip to content

Modern UI abbreviates editor tabs instead of shrinking or line wrapping for tabSizing: "shrink" and wrapTabs: true #337476

Description

@JulianJvn

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.139.0
  • OS Version: Windows 11

The new modern UI, which silently became the default in VS Code 1.139.0, does not work well with too long editor tabs when

{
    "workbench.editor.tabSizing": "shrink",
    "workbench.editor.wrapTabs": true
}

is set in the settings.

Previously, with these settings, VS Code shrinked or wrapped the editor tabs if the space was not sufficient. The new modern UI seems to very much prefer to abbreviate the components (= filename, and the directory name if multiple files with same filename are open) of the editor tab label. The space has to be really narrow to force it into multiple lines.

Steps to Reproduce

  1. Set the above settings (and have no other settings set).
  2. Press Ctrl+N repeatedly exactly until the editor tab line is full (i.e., another editor tab would not fit in there without shrinking tabs or wrapping lines).
  3. Press Ctrl+N one additional time.

Expected Behavior

The editor tabs shrink, cutting off the end, or wrap onto two lines.

Actual Behavior

The editor tabs are abbreviated, i.e., the Untitled-X titles with an ellipsis at the end (in this example case even making them indistinguishable as the number X is not visible anymore).

The effect is even more annoying if you have multiple files open with the same filename, as then both filename and directory name get abbreviated. You end up with an editor tab line with a lot of dots (...) in there. The old UI shows a lot more information in comparison.

Screenshots

Old UI

Tabs just fit in space (after step 2):
Image

With one additional tab (after step 3):
Image

When having multiple files open that have the same filename:
Image

Modern UI

Tabs just fit in space (after step 2):
Image

With one additional tab (after step 3):
Image

When having multiple files open that have the same filename (many dots, little information):
Image

Metadata

Metadata

Labels

buginsiders-releasedmodernizationverifiedworkbench-tabs

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions