Skip to content

Commit

Permalink
Update editor tabbar captions for better multi-root support
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
vince-fugnitto committed Aug 13, 2019
1 parent 11badc8 commit ccd9bce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/editor/src/browser/editor-widget-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
newEditor.title.caption = uri.path.toString();
return newEditor;
});
}
Expand Down

0 comments on commit ccd9bce

Please sign in to comment.