Skip to content

Identical file name path in tab is too long and difficult to diff #12040

@Tyriar

Description

@Tyriar
  • VSCode Version: Code - Insiders 1.6.0-insider (fad6a89, 2016-09-14T13:18:39.616Z)
  • OS Version: Linux x64 4.4.0-36-generic, Ubuntu 16.04

Current:

image

Proposed:

image

To describe the behavior I want: It should replace all parts of the start of the path that are the same with …/, then add the differing word(s) and then either /…/ or /. This makes it easier to differentiate each tab and also reduces the total space taken by the tab particularly in a deep directory structure.

Some interesting cases could arise when more than 2 files collide in which maybe 2 parts of the path would need to be displayed, for example:

  • src/vs/workbench/parts/execution/electron-browser/terminalService.ts
  • src/vs/workbench/parts/execution/electron-browser/something/terminalService.ts
  • src/vs/workbench/parts/terminal/electron-browser/terminalService.ts

Could yield:

  • …/execution/electron-browser/terminalService.ts
  • …/execution/electron-browser/something/terminalService.ts
  • …/terminal/…/terminalService.ts

Basically just providing enough information to uniquely identify the file, electron-browser could not be truncated above as …/execution/…/terminalService.ts represents both files.

Another interesting edge case: single letter folders would probably consume more space when truncated.

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalityhelp wantedIssues identified as good community contribution opportunitiesuxUser experience issuesverification-neededVerification of issue is requestedverifiedVerification succeededworkbench-tabsVS Code editor tab issues

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions