more work

This commit is contained in:
Benjamin Pasero
2017-09-05 15:29:36 +02:00
committed by Dirk Baeumer
parent 83cf5e7438
commit 8af225ee55
3 changed files with 8 additions and 6 deletions

View File

@ -61,13 +61,13 @@ function getEditorInfo(): { text: string; tooltip: string; color: string; } {
const folder = workspace.getWorkspaceFolder(resource);
if (!folder) {
text = `$(alert) <outside workspace> → ${basename(resource.fsPath)}`;
} else {
text = `$(file-submodule) ${basename(folder.uri.fsPath)}$(file-code) ${basename(resource.fsPath)}`;
tooltip = resource.fsPath;
const multiRootConfigForResource = workspace.getConfiguration('multiRootSample', resource);
color = multiRootConfigForResource.get('statusColor');
}
text = `$(file-submodule) ${basename(folder.uri.fsPath)}$(file-code) ${basename(resource.fsPath)}`;
tooltip = resource.fsPath;
const multiRootConfigForResource = workspace.getConfiguration('multiRootSample', resource);
color = multiRootConfigForResource.get('statusColor');
}
return { text, tooltip, color };