Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tab title uses parent for specified file names #30316

Closed
wants to merge 4 commits into from

Conversation

sohlex
Copy link

@sohlex sohlex commented Jul 9, 2017

This is my take for issues #27328 and #12965.
In the settings is now possible to specify an array of file names, i.e. "workbench.editor.tabTitleUsesParentFor": ["index.js", "template.hbs"].
This controls if we should emphasise parent directory name when there are opened editors with the specified file name.

In the screenshot there's the outcome of this PR: for the files specified, the parent directory is highlighted, for the others nothing changes (so if there's no ambiguity the file name is shown, otherwise the file name + path).

screen shot 2017-07-10 at 00 33 18

If this approach is considered valid, I'm open to suggestions on how to improve the code. Probably move all the logic inside the already existing method getUniqueTabLabels?

@mention-bot
Copy link

@sohlex, thanks for your PR! By analyzing the history of the files in this pull request, we identified @bpasero and @alexandrudima to be potential reviewers.

@msftclas
Copy link

msftclas commented Jul 9, 2017

@sohlex,
Thanks for your contribution.
To ensure that the project team has proper rights to use your work, please complete the Contribution License Agreement at https://cla.microsoft.com.

It will cover your contributions to all Microsoft-managed open source projects.
Thanks,
Microsoft Pull Request Bot

@sohlex sohlex changed the title Emphasize parent Emphasize parent for specified file names Jul 9, 2017
@msftclas
Copy link

msftclas commented Jul 9, 2017

@sohlex, thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request.

Thanks, Microsoft Pull Request Bot

@sohlex sohlex changed the title Emphasize parent for specified file names Tab title uses parent for specified file names Jul 10, 2017
@bpasero bpasero added this to the Backlog milestone Jul 10, 2017
@comerc
Copy link

comerc commented Aug 30, 2017

@bpasero
Copy link
Member

bpasero commented Sep 18, 2017

Closing in favour of #33815

@bpasero bpasero closed this Sep 18, 2017
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants