Skip to content

Commit 19ff2d5

Browse files
committed
WSL: Improve formatting on "recent workspaces" list. Fixes microsoft/vscode-remote-release#1633
1 parent e5dd57a commit 19ff2d5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/platform/workspaces/electron-main/workspacesHistoryMainService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as arrays from 'vs/base/common/arrays';
88
import { IStateService } from 'vs/platform/state/node/state';
99
import { app, JumpListCategory } from 'electron';
1010
import { ILogService } from 'vs/platform/log/common/log';
11-
import { getBaseLabel, getPathLabel } from 'vs/base/common/labels';
11+
import { getBaseLabel, getPathLabel, splitName } from 'vs/base/common/labels';
1212
import { IPath } from 'vs/platform/windows/common/windows';
1313
import { Event as CommonEvent, Emitter } from 'vs/base/common/event';
1414
import { isWindows, isMacintosh } from 'vs/base/common/platform';
@@ -352,7 +352,7 @@ export class WorkspacesHistoryMainService extends Disposable implements IWorkspa
352352
name: nls.localize('recentFolders', "Recent Workspaces"),
353353
items: arrays.coalesce(this.getRecentlyOpened().workspaces.slice(0, 7 /* limit number of entries here */).map(recent => {
354354
const workspace = isRecentWorkspace(recent) ? recent.workspace : recent.folderUri;
355-
const title = recent.label || getSimpleWorkspaceLabel(workspace, this.environmentService.untitledWorkspacesHome);
355+
const title = recent.label ? splitName(recent.label).name : getSimpleWorkspaceLabel(workspace, this.environmentService.untitledWorkspacesHome);
356356

357357
let description;
358358
let args;

0 commit comments

Comments
 (0)