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
{{ message }}
Repository navigation
Cannot distinguish different files with the same path.filename(x) #8499
bugIssue identified by VS Code Team member as probable buguxUser experience issuesverifiedVerification succeededworkbench-tabsVS Code editor tab issues
changed the title [-]Cannot distinguish different files with the sane path.filename(x)[/-][+]Cannot distinguish different files with the same path.filename(x)[/+]on Jun 29, 2016
As originally designed, we did something very similar: whenever something is opened that is not in the root of the folder, then we show it's parent folder below the file name in smaller text.
Some things to note... If we want to go with this approach, then we need to use something other than the italic font (this was before we decided to use italic font on preview tabs). What we could do is a less pronounced color. Combined with the smaller font size, I think that may work. I can work on some variations of this if we go down this route.
We should talk about this when I am back from vacation, a user posted a PR that does the simple thing: Just add the path of the file to the tab if another tab has the same name.
What about showing the path to the file in the window title like ST does? Often I would like to see the full path (for various reasons) even when I don't have multiple files by the same name open. (Since this is a slightly different issue, I can open a separate issue report if that seems more appropriate.)
I pushed a change to show the name of the folder to distinguish tabs with the same file name but I am falling back to showing the full path as soon as the parent folder is also identical. I think that is a good solution.
Jordan Hofker (@jhofker) yeah, nice finding, and I saw this today this morning and pushed a fix after our nightly was already running.
The really only situation you should ever see a full path (that is: workspace relative if the file is from an opened folder) in a tab is when both files have the same parent folder. But that seems to be happening in ST as well:
Know this is closed (and working fine) however, is there a way to force setting to always on? Would be useful if i have the editor split so I can tell the following apart easily:
Reacted by Jeremy Gollehon, Leo Caseiro, Alexey Mikhaylov, Aleksandr Bazhenov, Joakim Tønnesen, Parker Bond and Kevin Chu
+1 for a setting to force this always on, but for a different use-case than Steve Ross (@steve-ross). Working in a project that has many of the same filenames (e.g. Ember, where filenames are relatively semantic, or many NodeJS apps where index.js has an important role) produces strong usability issues as you often don't need to edit two files with the same name at the same time, but may lose track of which file you have open. It would, personally, make my life a lot easier if I could set a minimum value for tab path (i.e. always show at least the parent folder name, or more if you have multiple instances open) or perhaps a setting similar to window.title wherein you could supply a magic string for tab title and subtitles. I find in Ember especially (where I have many different application.js files and forms and routes with the same name) I have to hover over the tab to see the full path quite often.
Jeff (@peabnuts123) same use case :) as in my screen shot (react / redux app) maybe that approach makes more sense. Guess we should really dig in and see if we could contribute. Special thanks to all you open source contributors. Don't let our "complaints" & feature requests diminish the fact that you all kick ass for bringing us tools.
Reacted by davida, Jens Hausdorf, Francisco Reynolds, Aleksei Chernov and Mike Plis
Reacted by Jeff, davida, Jens Hausdorf, Francisco Reynolds and Cory LaViska
bugIssue identified by VS Code Team member as probable buguxUser experience issuesverifiedVerification succeededworkbench-tabsVS Code editor tab issues
Activity
alexdima commentedon Jun 29, 2016
I had both the user settings and the workspace settings ...
[-]Cannot distinguish different files with the sane path.filename(x)[/-][+]Cannot distinguish different files with the same path.filename(x)[/+]bpasero commentedon Jun 29, 2016
Interesting what ST does in this case:
bgashler1 commentedon Jun 29, 2016
As originally designed, we did something very similar: whenever something is opened that is not in the root of the folder, then we show it's parent folder below the file name in smaller text.
Some things to note... If we want to go with this approach, then we need to use something other than the italic font (this was before we decided to use italic font on preview tabs). What we could do is a less pronounced color. Combined with the smaller font size, I think that may work. I can work on some variations of this if we go down this route.
stevencl commentedon Jul 4, 2016
If we showed the path to the file in the status bar would this resolve this issue?
Is there enough horizontal and vertical space in the tab to be able to show the path to the file?
bpasero commentedon Jul 13, 2016
We should talk about this when I am back from vacation, a user posted a PR that does the simple thing: Just add the path of the file to the tab if another tab has the same name.
ecraig12345 commentedon Jul 14, 2016
What about showing the path to the file in the window title like ST does? Often I would like to see the full path (for various reasons) even when I don't have multiple files by the same name open. (Since this is a slightly different issue, I can open a separate issue report if that seems more appropriate.)
19 remaining items
bpasero commentedon Aug 15, 2016
I pushed a change to show the name of the folder to distinguish tabs with the same file name but I am falling back to showing the full path as soon as the parent folder is also identical. I think that is a good solution.
Steven Clarke (@stevencl) fyi, this solution is closer to what you suggested in the first place.
jhofker commentedon Aug 15, 2016
Good stuff!

But multiple files in one folder matching multiple files in another gets hairy:

bpasero commentedon Aug 15, 2016
Jordan Hofker (@jhofker) yeah, nice finding, and I saw this today this morning and pushed a fix after our nightly was already running.
The really only situation you should ever see a full path (that is: workspace relative if the file is from an opened folder) in a tab is when both files have the same parent folder. But that seems to be happening in ST as well:
jhofker commentedon Aug 18, 2016
Benjamin Pasero (@bpasero) just updated to last night's build and this is working great. Thank you!
steve-ross commentedon Nov 1, 2016
Know this is closed (and working fine) however, is there a way to force setting to always on? Would be useful if i have the editor split so I can tell the following apart easily:
bpasero commentedon Nov 1, 2016
#13350
peabnuts123 commentedon May 28, 2017
+1 for a setting to force this always on, but for a different use-case than Steve Ross (@steve-ross). Working in a project that has many of the same filenames (e.g. Ember, where filenames are relatively semantic, or many NodeJS apps where
index.jshas an important role) produces strong usability issues as you often don't need to edit two files with the same name at the same time, but may lose track of which file you have open. It would, personally, make my life a lot easier if I could set a minimum value for tab path (i.e. always show at least the parent folder name, or more if you have multiple instances open) or perhaps a setting similar towindow.titlewherein you could supply a magic string for tab title and subtitles. I find in Ember especially (where I have many differentapplication.jsfiles and forms and routes with the same name) I have to hover over the tab to see the full path quite often.steve-ross commentedon May 30, 2017
Jeff (@peabnuts123) same use case :) as in my screen shot (react / redux app) maybe that approach makes more sense. Guess we should really dig in and see if we could contribute. Special thanks to all you open source contributors. Don't let our "complaints" & feature requests diminish the fact that you all kick ass for bringing us tools.
davidacreates commentedon Jun 7, 2017
+1 i am working on a react/redux app and would love an always on option as Steve Ross (@steve-ross) mentioned.
matthewrbrooks commentedon Jun 16, 2017
Another +1 for exactly the same reasons as @orangemooncreative Steve Ross (@steve-ross) ...
And another +1 for 'it's a great tool'!
I'm not github-by enough to know whether we should / can file this as a feature request?
Cannot distinguish different files with the same path.filename(x) (fixes