You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When testing this, I thought that it'd be nice to have a version of ${dirname} that gives the minimum pathname to differentiate from matches. For example,
If you had one/file.json open only, it would just open as file.json. If you also opened two/file.json, the original file would be one/file.json and the second would be two/file.json.
Finally, if you only had one/new_folder/file.json open with two/new_folder/file.json, you would show those names as I wrote them, as they both share their immediate parent folder name.
The text was updated successfully, but these errors were encountered:
We already have a similar concept for the description of the label. When you have multiple files with the same name open, we "dedupe" them by adding the shortest differentiating path as description of the label in the tab (and open editors view).
See in this picture ...\tree and ...\titlebar.
I like the idea of making the unique directory more visible than it is in the descriptions. However, a few concerns come to mind:
Reliance on Workbench/Open Editors State: It's unusual that label names would change based on the open or closed state of editors, moving away from the simpler approach of using file paths. This could make the UI feel less predictable.
Dynamic Renaming: The constant renaming as editors open and close could lead to some confusion for users as the editor no longer has the same name as when the user opened it.
Broader Application: Extending this renaming beyond open editors to other areas like quick pick could introduce more complexity (scope would no longer be open editors but all files...?) and potential issues.
I'll leave this open for the time, but might close it depending on the feedback from the community
Testing #208388
When testing this, I thought that it'd be nice to have a version of ${dirname} that gives the minimum pathname to differentiate from matches. For example,
**/file.json
:${unique_dirname}/${filename}.${extname}
with the following filetree
If you had
one/file.json
open only, it would just open asfile.json
. If you also openedtwo/file.json
, the original file would beone/file.json
and the second would betwo/file.json
.Finally, if you only had
one/new_folder/file.json
open withtwo/new_folder/file.json
, you would show those names as I wrote them, as they both share their immediate parent folder name.The text was updated successfully, but these errors were encountered: