Skip to content

Improve path presentation in quick open window#307764

Open
as567-code wants to merge 2 commits intomicrosoft:mainfrom
as567-code:improve-quickopen-path-presentation
Open

Improve path presentation in quick open window#307764
as567-code wants to merge 2 commits intomicrosoft:mainfrom
as567-code:improve-quickopen-path-presentation

Conversation

@as567-code
Copy link
Copy Markdown

Fixes #143956

Description

When multiple files share the same name but reside in different directories, the Quick Open (Cmd+P) description (file path) truncates from the right, hiding the distinguishing folder names. This makes it impossible to tell files apart.

Before: some_project/some_longer_path... (ellipsis on right, distinguishing part hidden)
After: ...fruits/bananas/Main.js (ellipsis on left, distinguishing part visible)

Approach

Added a CSS rule scoped to the quick input list that applies direction: rtl with text-align: left to the path description element. This causes the browser to place the text-overflow ellipsis on the left side while keeping the text visually left-aligned, similar to how Sublime Text handles this (as referenced in the issue).

Changes

  • src/vs/platform/quickinput/browser/media/quickInput.css — added RTL direction rule for .label-description within quick input list rows

Testing

  • Verified with workspaces containing identically-named files in different directories
  • The distinguishing path segments are now always visible
  • No visual regression for short paths that don't trigger ellipsis

When multiple files share the same name but reside in different
directories, the quick open description (file path) now truncates
from the left using RTL direction, preserving the distinguishing
folder names at the end of the path.

Before: some_project/some_longer_path.../Main.js
After:  .../fruits/bananas/Main.js

Fixes microsoft#143956
@vs-code-engineering
Copy link
Copy Markdown
Contributor

vs-code-engineering bot commented Apr 4, 2026

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@TylerLeonhardt

Matched files:

  • src/vs/platform/quickinput/browser/media/quickInput.css

Adds unicode-bidi: plaintext to ensure path separators render
correctly with RTL direction, and adds explanatory comment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Better path presentation in quick open window

2 participants