mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
minor fix for root labels
This commit is contained in:
@@ -102,12 +102,12 @@ export class LabelService implements ILabelService {
|
||||
// Workspace: Single Folder
|
||||
if (isSingleFolderWorkspaceIdentifier(workspace)) {
|
||||
// Folder on disk
|
||||
const formatter = this.findFormatter(workspace);
|
||||
const label = options && options.verbose ? this.getUriLabel(workspace) : resourceBasename(workspace);
|
||||
const label = options && options.verbose ? this.getUriLabel(workspace) : resourceBasename(workspace) || '/';
|
||||
if (workspace.scheme === Schemas.file) {
|
||||
return label;
|
||||
}
|
||||
|
||||
const formatter = this.findFormatter(workspace);
|
||||
const suffix = formatter && formatter.workspace && (typeof formatter.workspace.suffix === 'string') ? formatter.workspace.suffix : workspace.scheme;
|
||||
return suffix ? `${label} (${suffix})` : label;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user