mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
use more mr APIs
This commit is contained in:
@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user