constisMultiRootEnabled=(product.quality!=='stable');// TODO@Ben multi root
constworkspacesMenu=newMenu();
constworkspaces=newMenuItem({label:this.mnemonicLabel(nls.localize({key:'miWorkspaces',comment:['&& denotes a mnemonic']},"Workspaces")),submenu:workspacesMenu});
constworkspaces=newMenuItem({label:this.mnemonicLabel(nls.localize({key:'miWorkspaces',comment:['&& denotes a mnemonic']},"&&Workspaces")),submenu:workspacesMenu});
constnewWorkspace=this.createMenuItem(nls.localize({key:'miNewWorkspace',comment:['&& denotes a mnemonic']},"&&New Workspace..."),'workbench.action.newWorkspace');
constopenWorkspace=this.createMenuItem(nls.localize({key:'miOpenWorkspace',comment:['&& denotes a mnemonic']},"&&Open Workspace..."),'workbench.action.openWorkspace');
detail:nls.localize('workspaceDetail',"Workspaces allow to open multiple folders at once."),
noLink:true,
type:'info',
type:'question',
buttons:buttons.map(button=>button.label),
cancelId:buttons.indexOf(cancel)
};
...
...
@@ -183,7 +183,7 @@ export class AddRootFolderAction extends BaseWorkspacesAction {
}
if(this.contextService.hasFolderWorkspace()){
if(this.handleNotInMultiFolderWorkspaceCase(nls.localize('addSupported',"Adding a folder to workspace is not supported when window is opened with a folder.\n\nDo you want to create a new workspace with the current folder and add folders to it?\n"),nls.localize({key:'createAndAdd',comment:['&& denotes a mnemonic']},"&&Create Workspace & Add"))){
if(this.handleNotInMultiFolderWorkspaceCase(nls.localize('addSupported',"Adding a folder to workspace is not supported when window is opened with a folder.\n\nDo you want to create a new workspace with the current folder and add folders to it?\n"),nls.localize({key:'createAndAdd',comment:['&& denotes a mnemonic']},"&&Create Workspace and Add"))){
@@ -246,12 +246,12 @@ export class SaveWorkspaceAsAction extends BaseWorkspacesAction {
returnthis.saveMultiFolderWorkspace();
}
this.messageService.show(Severity.Info,nls.localize('saveEmptyWorkspaceNotSupported',"Cannot save an empty workspace"));
this.messageService.show(Severity.Info,nls.localize('saveEmptyWorkspaceNotSupported',"Saving a workspace is not supported when the window is opened without a folder. Please open a folder first."));
returnTPromise.as(null);
}
privatesaveFolderWorkspace():TPromise<void>{
if(this.handleNotInMultiFolderWorkspaceCase(nls.localize('saveNotSupported',"Saving a workspace is not supported when window is opened with a folder.\n\nDo you want to create a new workspace with the current folder and save it?\n"),nls.localize({key:'createAndSave',comment:['&& denotes a mnemonic']},"&&Create Workspace & Save"))){
if(this.handleNotInMultiFolderWorkspaceCase(nls.localize('saveNotSupported',"Saving a workspace is not supported when the window is opened with a folder.\n\nDo you want to create a new workspace with the current folder and save it?\n"),nls.localize({key:'createAndSave',comment:['&& denotes a mnemonic']},"&&Create Workspace and Save"))){