File tree Expand file tree Collapse file tree
workbench/parts/files/electron-browser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,7 +107,8 @@ export class LabelService implements ILabelService {
107107 // Folder on disk
108108 const formatter = this . formatters . get ( workspace . scheme ) ;
109109 const label = options && options . verbose ? this . getUriLabel ( workspace ) : basenameOrAuthority ( workspace ) ;
110- return formatter && formatter . workspace && formatter . workspace . suffix ? `${ label } (${ formatter . workspace . suffix } )` : label ;
110+ const suffix = formatter && formatter . workspace && ( typeof formatter . workspace . suffix === 'string' ) ? formatter . workspace . suffix : workspace . scheme ;
111+ return suffix ? `${ label } (${ suffix } )` : label ;
111112 }
112113
113114 // Workspace: Untitled
Original file line number Diff line number Diff line change @@ -62,6 +62,9 @@ class FileUriLabelContribution implements IWorkbenchContribution {
6262 separator : nativeSep ,
6363 tildify : ! platform . isWindows ,
6464 normalizeDriveLetter : platform . isWindows
65+ } ,
66+ workspace : {
67+ suffix : ''
6568 }
6669 } ) ;
6770 }
You can’t perform that action at this time.
0 commit comments