use getPathLabel also for recent menu

This commit is contained in:
Benjamin Pasero
2017-08-30 10:57:37 +02:00
parent 0a5cc39147
commit 2d8b7ab4e1
+2 -2
View File
@@ -18,7 +18,7 @@ import { IUpdateService, State as UpdateState } from 'vs/platform/update/common/
import product from 'vs/platform/node/product';
import { RunOnceScheduler } from 'vs/base/common/async';
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
import { tildify, mnemonicMenuLabel as baseMnemonicLabel, unmnemonicLabel } from 'vs/base/common/labels';
import { mnemonicMenuLabel as baseMnemonicLabel, unmnemonicLabel, getPathLabel } from 'vs/base/common/labels';
import { KeybindingsResolver } from 'vs/code/electron-main/keyboard';
import { IWindowsMainService, IWindowsCountChangedEvent } from 'vs/platform/windows/electron-main/windows';
import { IHistoryMainService } from 'vs/platform/history/common/history';
@@ -492,7 +492,7 @@ export class CodeMenu {
let label: string;
let path: string;
if (isSingleFolderWorkspaceIdentifier(workspace) || typeof workspace === 'string') {
label = unmnemonicLabel(tildify(workspace, this.environmentService.userHome));
label = unmnemonicLabel(getPathLabel(workspace, null, this.environmentService));
path = workspace;
} else {
label = getWorkspaceLabel(workspace, this.environmentService, { verbose: true });