From 2d8b7ab4e15f437bb1dbb307a34ad8f7d56d23e2 Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Wed, 30 Aug 2017 10:57:37 +0200 Subject: [PATCH] use getPathLabel also for recent menu --- src/vs/code/electron-main/menus.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/code/electron-main/menus.ts b/src/vs/code/electron-main/menus.ts index 7eed7f79107..00423f78d34 100644 --- a/src/vs/code/electron-main/menus.ts +++ b/src/vs/code/electron-main/menus.ts @@ -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 });