mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
do not show authority for workspace labels
This commit is contained in:
@@ -9,7 +9,7 @@ import { IDisposable } from 'vs/base/common/lifecycle';
|
||||
import { Event, Emitter } from 'vs/base/common/event';
|
||||
import { IEnvironmentService } from 'vs/platform/environment/common/environment';
|
||||
import { IWorkspaceContextService, IWorkspace } from 'vs/platform/workspace/common/workspace';
|
||||
import { isEqual, basenameOrAuthority } from 'vs/base/common/resources';
|
||||
import { isEqual, basenameOrAuthority, basename as resourceBasename } from 'vs/base/common/resources';
|
||||
import { isLinux, isWindows } from 'vs/base/common/platform';
|
||||
import { tildify, getPathLabel } from 'vs/base/common/labels';
|
||||
import { ltrim, startsWith } from 'vs/base/common/strings';
|
||||
@@ -103,7 +103,7 @@ export class LabelService implements ILabelService {
|
||||
if (isSingleFolderWorkspaceIdentifier(workspace)) {
|
||||
// Folder on disk
|
||||
const formatter = this.findFormatter(workspace);
|
||||
const label = options && options.verbose ? this.getUriLabel(workspace) : basenameOrAuthority(workspace);
|
||||
const label = options && options.verbose ? this.getUriLabel(workspace) : resourceBasename(workspace);
|
||||
if (workspace.scheme === Schemas.file) {
|
||||
return label;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user