newFile=newMenuItem({label:mnemonicLabel(nls.localize({key:'miNewFile',comment:['&& denotes a mnemonic']},"&&New File")),accelerator:this.getAccelerator('workbench.action.files.newUntitledFile'),click:()=>this.windowsService.openNewWindow()});
newFile=newMenuItem(this.likeAction('workbench.action.files.newUntitledFile',{label:mnemonicLabel(nls.localize({key:'miNewFile',comment:['&& denotes a mnemonic']},"&&New File")),click:()=>this.windowsService.openNewWindow()}));
}else{
newFile=this.createMenuItem(nls.localize({key:'miNewFile',comment:['&& denotes a mnemonic']},"&&New File"),'workbench.action.files.newUntitledFile');
}
constopen=newMenuItem({label:mnemonicLabel(nls.localize({key:'miOpen',comment:['&& denotes a mnemonic']},"&&Open...")),accelerator:this.getAccelerator('workbench.action.files.openFileFolder'),click:()=>this.windowsService.openFileFolderPicker()});
constopenFolder=newMenuItem({label:mnemonicLabel(nls.localize({key:'miOpenFolder',comment:['&& denotes a mnemonic']},"Open &&Folder...")),accelerator:this.getAccelerator('workbench.action.files.openFolder'),click:()=>this.windowsService.openFolderPicker()});
constopen=newMenuItem(this.likeAction('workbench.action.files.openFileFolder',{label:mnemonicLabel(nls.localize({key:'miOpen',comment:['&& denotes a mnemonic']},"&&Open...")),click:()=>this.windowsService.openFileFolderPicker()}));
constopenFolder=newMenuItem(this.likeAction('workbench.action.files.openFolder',{label:mnemonicLabel(nls.localize({key:'miOpenFolder',comment:['&& denotes a mnemonic']},"Open &&Folder...")),click:()=>this.windowsService.openFolderPicker()}));
letopenFile:Electron.MenuItem;
if(hasNoWindows){
openFile=newMenuItem({label:mnemonicLabel(nls.localize({key:'miOpenFile',comment:['&& denotes a mnemonic']},"&&Open File...")),accelerator:this.getAccelerator('workbench.action.files.openFile'),click:()=>this.windowsService.openFilePicker()});
openFile=newMenuItem(this.likeAction('workbench.action.files.openFile',{label:mnemonicLabel(nls.localize({key:'miOpenFile',comment:['&& denotes a mnemonic']},"&&Open File...")),click:()=>this.windowsService.openFilePicker()}));
}else{
openFile=this.createMenuItem(nls.localize({key:'miOpenFile',comment:['&& denotes a mnemonic']},"&&Open File..."),'workbench.action.files.openFile');
}
...
...
@@ -374,18 +374,18 @@ export class VSCodeMenu {
constsaveAllFiles=this.createMenuItem(nls.localize({key:'miSaveAll',comment:['&& denotes a mnemonic']},"Save A&&ll"),'workbench.action.files.saveAll',this.windowsService.getWindowCount()>0);
constnewWindow=newMenuItem({label:mnemonicLabel(nls.localize({key:'miNewWindow',comment:['&& denotes a mnemonic']},"&&New Window")),accelerator:this.getAccelerator('workbench.action.newWindow'),click:()=>this.windowsService.openNewWindow()});
constnewWindow=newMenuItem(this.likeAction('workbench.action.newWindow',{label:mnemonicLabel(nls.localize({key:'miNewWindow',comment:['&& denotes a mnemonic']},"&&New Window")),click:()=>this.windowsService.openNewWindow()}));
constrevertFile=this.createMenuItem(nls.localize({key:'miRevert',comment:['&& denotes a mnemonic']},"Revert F&&ile"),'workbench.action.files.revert',this.windowsService.getWindowCount()>0);
constcloseWindow=newMenuItem({label:mnemonicLabel(nls.localize({key:'miCloseWindow',comment:['&& denotes a mnemonic']},"Close &&Window")),accelerator:this.getAccelerator('workbench.action.closeWindow'),click:()=>this.windowsService.getLastActiveWindow().win.close(),enabled:this.windowsService.getWindowCount()>0});
constcloseWindow=newMenuItem(this.likeAction('workbench.action.closeWindow',{label:mnemonicLabel(nls.localize({key:'miCloseWindow',comment:['&& denotes a mnemonic']},"Close &&Window")),click:()=>this.windowsService.getLastActiveWindow().win.close(),enabled:this.windowsService.getWindowCount()>0}));
constcloseFolder=this.createMenuItem(nls.localize({key:'miCloseFolder',comment:['&& denotes a mnemonic']},"Close &&Folder"),'workbench.action.closeFolder');
constcloseEditor=this.createMenuItem(nls.localize({key:'miCloseEditor',comment:['&& denotes a mnemonic']},"Close &&Editor"),'workbench.action.closeActiveEditor');
constexit=newMenuItem({label:mnemonicLabel(nls.localize({key:'miExit',comment:['&& denotes a mnemonic']},"E&&xit")),accelerator:this.getAccelerator('workbench.action.quit'),click:()=>this.windowsService.quit()});
constexit=newMenuItem(this.likeAction('workbench.action.quit',{label:mnemonicLabel(nls.localize({key:'miExit',comment:['&& denotes a mnemonic']},"E&&xit")),click:()=>this.windowsService.quit()}));
openRecentMenu.append(newMenuItem({label:mnemonicLabel(nls.localize({key:'miClearItems',comment:['&& denotes a mnemonic']},"&&Clear Items")),click:()=>this.windowsService.clearRecentPathsList()}));
openRecentMenu.append(newMenuItem(this.likeAction('clearRecentlyOpened',{label:mnemonicLabel(nls.localize({key:'miClearItems',comment:['&& denotes a mnemonic']},"&&Clear Items")),click:()=>this.windowsService.clearRecentPathsList()},false)));