From 8809863c989c5aaf07763925b6098239e0f7c35d Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Tue, 5 Sep 2017 15:33:37 +0200 Subject: [PATCH] use more mr APIs --- basic-multi-root-sample/src/extension.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/basic-multi-root-sample/src/extension.ts b/basic-multi-root-sample/src/extension.ts index 76b8209e..7e383b60 100644 --- a/basic-multi-root-sample/src/extension.ts +++ b/basic-multi-root-sample/src/extension.ts @@ -62,9 +62,9 @@ function getEditorInfo(): { text: string; tooltip: string; color: string; } { if (!folder) { text = `$(alert) → ${basename(resource.fsPath)}`; } else { - text = `$(file-submodule) ${basename(folder.uri.fsPath)} → $(file-code) ${basename(resource.fsPath)}`; + text = `$(file-submodule) ${basename(folder.uri.fsPath)} (${folder.index + 1} of ${workspace.workspaceFolders.length}) → $(file-code) ${basename(resource.fsPath)}`; tooltip = resource.fsPath; - + const multiRootConfigForResource = workspace.getConfiguration('multiRootSample', resource); color = multiRootConfigForResource.get('statusColor'); }