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'); }