-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Update editor tabbar captions for better multi-root support #5924
Conversation
Fixes #5921 - updated the editor's caption (used for tabbars) in order to better support multi-root workspaces, and align with VSCode. Currently, when in a multi-root workspace there is no way to easily distinguish which root the file resides in. With this change the entire path is displayed, similarly to the explorer. Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
@akosyakov I know the coding guidelines state to use the Debugging the code I can see that Is there a way to be able to programmatically decide which contribution I want to handle the implementation of the method (ex: In order to get the correct results, I followed the logic present in the |
@@ -50,7 +50,7 @@ export class EditorWidgetFactory implements WidgetFactory { | |||
newEditor.title.closable = true; | |||
newEditor.title.label = this.labelProvider.getName(uri); | |||
newEditor.title.iconClass = icon + ' file-icon'; | |||
newEditor.title.caption = this.labelProvider.getLongName(uri); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but it breaks single root scenarios? Should not we work on improving getLongName
for multi-roots?
Have you checked what VS Code show? I would imagine we can show something like README.md (cpp)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, checked with VS Code, for tooltips always the full path is used
Sorry I just got to work, yes exactly, they display the long path irregardless of if its a single or multi-root workspace. |
What it does
Fixes #5921
to better support multi-root workspaces, and align with VSCode.
Currently, when in a multi-root workspace there is no way to
easily distinguish which root the file resides in. With this
change the entire path is displayed, similarly to the explorer.
How to test
Review checklist
Reminder for reviewers
Signed-off-by: Vincent Fugnitto vincent.fugnitto@ericsson.com