File tree Expand file tree Collapse file tree
src/vs/platform/workspaces/electron-main Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import * as arrays from 'vs/base/common/arrays';
88import { IStateService } from 'vs/platform/state/node/state' ;
99import { app , JumpListCategory } from 'electron' ;
1010import { 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' ;
1212import { IPath } from 'vs/platform/windows/common/windows' ;
1313import { Event as CommonEvent , Emitter } from 'vs/base/common/event' ;
1414import { 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 ;
You can’t perform that action at this time.
0 commit comments