From ccd9bce814e7bad5aab5d947e71f168ddee7df76 Mon Sep 17 00:00:00 2001 From: Vincent Fugnitto Date: Mon, 12 Aug 2019 21:17:47 -0400 Subject: [PATCH] Update editor tabbar captions for better multi-root support 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 --- packages/editor/src/browser/editor-widget-factory.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor/src/browser/editor-widget-factory.ts b/packages/editor/src/browser/editor-widget-factory.ts index e0ed07d5e2dc0..4e07734147435 100644 --- a/packages/editor/src/browser/editor-widget-factory.ts +++ b/packages/editor/src/browser/editor-widget-factory.ts @@ -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; }); }