dirname can not return null

This commit is contained in:
Martin Aeschlimann
2019-02-12 17:05:50 +01:00
parent 210fa4274d
commit 08705a1b10
17 changed files with 49 additions and 53 deletions

View File

@@ -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);