mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-29 21:11:38 +01:00
dirname can not return null
This commit is contained in:
@@ -194,7 +194,7 @@ export class LabelService implements ILabelService {
|
||||
const filename = basename(workspace.configPath);
|
||||
const workspaceName = filename.substr(0, filename.length - WORKSPACE_EXTENSION.length - 1);
|
||||
if (options && options.verbose) {
|
||||
return localize('workspaceNameVerbose', "{0} (Workspace)", this.getUriLabel(joinPath(dirname(workspace.configPath)!, workspaceName)));
|
||||
return localize('workspaceNameVerbose', "{0} (Workspace)", this.getUriLabel(joinPath(dirname(workspace.configPath), workspaceName)));
|
||||
}
|
||||
|
||||
return localize('workspaceName', "{0} (Workspace)", workspaceName);
|
||||
|
||||
Reference in New Issue
Block a user