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',this.windowsService.getWindowCount()>0);
constopenWorkspace=this.createMenuItem(nls.localize({key:'miOpenWorkspace',comment:['&& denotes a mnemonic']},"&&Open Workspace..."),'workbench.action.openWorkspace',this.windowsService.getWindowCount()>0);
constsaveWorkspace=this.createMenuItem(nls.localize({key:'miSaveWorkspaceAs',comment:['&& denotes a mnemonic']},"&&Save Workspace As..."),'workbench.action.saveWorkspaceAs',this.windowsService.getWindowCount()>0);
constaddFolder=this.createMenuItem(nls.localize({key:'miAddFolderToWorkspace',comment:['&& denotes a mnemonic']},"&&Add Folder to Workspace..."),'workbench.action.addRootFolder',this.windowsService.getWindowCount()>0);
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');
constsaveWorkspace=this.createMenuItem(nls.localize({key:'miSaveWorkspaceAs',comment:['&& denotes a mnemonic']},"&&Save Workspace As..."),'workbench.action.saveWorkspaceAs');
constaddFolder=this.createMenuItem(nls.localize({key:'miAddFolderToWorkspace',comment:['&& denotes a mnemonic']},"&&Add Folder to Workspace..."),'workbench.action.addRootFolder');
[
newWorkspace,
openWorkspace,
...
...
@@ -376,9 +376,9 @@ export class CodeMenu {
addFolder
].forEach(item=>workspacesMenu.append(item));
constsaveFile=this.createMenuItem(nls.localize({key:'miSave',comment:['&& denotes a mnemonic']},"&&Save"),'workbench.action.files.save',this.windowsService.getWindowCount()>0);
constsaveFileAs=this.createMenuItem(nls.localize({key:'miSaveAs',comment:['&& denotes a mnemonic']},"Save &&As..."),'workbench.action.files.saveAs',this.windowsService.getWindowCount()>0);
constsaveAllFiles=this.createMenuItem(nls.localize({key:'miSaveAll',comment:['&& denotes a mnemonic']},"Save A&&ll"),'workbench.action.files.saveAll',this.windowsService.getWindowCount()>0);
constsaveFile=this.createMenuItem(nls.localize({key:'miSave',comment:['&& denotes a mnemonic']},"&&Save"),'workbench.action.files.save');
constsaveFileAs=this.createMenuItem(nls.localize({key:'miSaveAs',comment:['&& denotes a mnemonic']},"Save &&As..."),'workbench.action.files.saveAs');
constsaveAllFiles=this.createMenuItem(nls.localize({key:'miSaveAll',comment:['&& denotes a mnemonic']},"Save A&&ll"),'workbench.action.files.saveAll');
constnewWindow=newMenuItem(this.likeAction('workbench.action.newWindow',{label:this.mnemonicLabel(nls.localize({key:'miNewWindow',comment:['&& denotes a mnemonic']},"New &&Window")),click:()=>this.windowsService.openNewWindow(OpenContext.MENU)}));
constrevertFile=this.createMenuItem(nls.localize({key:'miRevert',comment:['&& denotes a mnemonic']},"Re&&vert File"),'workbench.action.files.revert',this.windowsService.getWindowCount()>0);
constrevertFile=this.createMenuItem(nls.localize({key:'miRevert',comment:['&& denotes a mnemonic']},"Re&&vert File"),'workbench.action.files.revert');
constcloseWindow=newMenuItem(this.likeAction('workbench.action.closeWindow',{label:this.mnemonicLabel(nls.localize({key:'miCloseWindow',comment:['&& denotes a mnemonic']},"Clos&&e Window")),click:()=>this.windowsService.getLastActiveWindow().win.close(),enabled:this.windowsService.getWindowCount()>0}));
constcloseWorkspace=this.createMenuItem(nls.localize({key:'miCloseWorkspace',comment:['&& denotes a mnemonic']},"Close &&Workspace"),'workbench.action.closeFolder');
...
...
@@ -644,7 +644,7 @@ export class CodeMenu {
constcommands=this.createMenuItem(nls.localize({key:'miCommandPalette',comment:['&& denotes a mnemonic']},"&&Command Palette..."),'workbench.action.showCommands');
constfullscreen=newMenuItem(this.withKeybinding('workbench.action.toggleFullScreen',{label:this.mnemonicLabel(nls.localize({key:'miToggleFullScreen',comment:['&& denotes a mnemonic']},"Toggle &&Full Screen")),click:()=>this.windowsService.getLastActiveWindow().toggleFullScreen(),enabled:this.windowsService.getWindowCount()>0}));
consttoggleZenMode=this.createMenuItem(nls.localize('miToggleZenMode',"Toggle Zen Mode"),'workbench.action.toggleZenMode',this.windowsService.getWindowCount()>0);
consttoggleZenMode=this.createMenuItem(nls.localize('miToggleZenMode',"Toggle Zen Mode"),'workbench.action.toggleZenMode');
consttoggleMenuBar=this.createMenuItem(nls.localize({key:'miToggleMenuBar',comment:['&& denotes a mnemonic']},"Toggle Menu &&Bar"),'workbench.action.toggleMenuBar');
constsplitEditor=this.createMenuItem(nls.localize({key:'miSplitEditor',comment:['&& denotes a mnemonic']},"Split &&Editor"),'workbench.action.splitEditor');
consttoggleEditorLayout=this.createMenuItem(nls.localize({key:'miToggleEditorLayout',comment:['&& denotes a mnemonic']},"Toggle Editor Group &&Layout"),'workbench.action.toggleEditorGroupLayout');
constbringAllToFront=newMenuItem({label:nls.localize('mBringToFront',"Bring All to Front"),role:'front',enabled:this.windowsService.getWindowCount()>0});
constswitchWindow=this.createMenuItem(nls.localize({key:'miSwitchWindow',comment:['&& denotes a mnemonic']},"Switch &&Window..."),'workbench.action.switchWindow',this.windowsService.getWindowCount()>0);
constswitchWindow=this.createMenuItem(nls.localize({key:'miSwitchWindow',comment:['&& denotes a mnemonic']},"Switch &&Window..."),'workbench.action.switchWindow');