-
Notifications
You must be signed in to change notification settings - Fork 38.1k
Description
- 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:
Proposed:
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.tssrc/vs/workbench/parts/execution/electron-browser/something/terminalService.tssrc/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.

