mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
label service: workspace suffix has to be explicitly set
This commit is contained in:
@@ -17,7 +17,6 @@ import { isWindows } from 'vs/base/common/platform';
|
||||
import { tildify, getPathLabel } from 'vs/base/common/labels';
|
||||
import { ltrim, endsWith } from 'vs/base/common/strings';
|
||||
import { IWorkspaceIdentifier, ISingleFolderWorkspaceIdentifier, isSingleFolderWorkspaceIdentifier, WORKSPACE_EXTENSION, toWorkspaceIdentifier, isWorkspaceIdentifier } from 'vs/platform/workspaces/common/workspaces';
|
||||
import { Schemas } from 'vs/base/common/network';
|
||||
import { ILabelService, ResourceLabelFormatter, ResourceLabelFormatting } from 'vs/platform/label/common/label';
|
||||
import { ExtensionsRegistry } from 'vs/workbench/services/extensions/common/extensionsRegistry';
|
||||
import { match } from 'vs/base/common/glob';
|
||||
@@ -283,12 +282,8 @@ export class LabelService implements ILabelService {
|
||||
}
|
||||
|
||||
private appendWorkspaceSuffix(label: string, uri: URI): string {
|
||||
if (uri.scheme === Schemas.file) {
|
||||
return label;
|
||||
}
|
||||
|
||||
const formatting = this.findFormatting(uri);
|
||||
const suffix = formatting && (typeof formatting.workspaceSuffix === 'string') ? formatting.workspaceSuffix : uri.scheme;
|
||||
const suffix = formatting && (typeof formatting.workspaceSuffix === 'string') ? formatting.workspaceSuffix : undefined;
|
||||
return suffix ? `${label} [${suffix}]` : label;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user