use more mr APIs

This commit is contained in:
Benjamin Pasero
2017-09-05 15:33:37 +02:00
parent dee88267e8
commit 8809863c98

View File

@ -62,9 +62,9 @@ function getEditorInfo(): { text: string; tooltip: string; color: string; } {
if (!folder) {
text = `$(alert) <outside workspace> → ${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');
}