newFile=this.createMenuItem(nls.localize({key:'miNewFile',comment:['&& denotes a mnemonic']},"&&New File"),'workbench.action.files.newUntitledFile');
}
constopen=newMenuItem(this.likeAction('workbench.action.files.openFileFolder',{label:this.mnemonicLabel(nls.localize({key:'miOpen',comment:['&& denotes a mnemonic']},"&&Open...")),click:(menuItem,win,event)=>this.windowsService.pickFileFolderAndOpen({forceNewWindow:this.isOptionClick(event),telemetryExtraData:{from:telemetryFrom}})}));
constopenWorkspace=newMenuItem(this.likeAction('workbench.action.openWorkspace',{label:this.mnemonicLabel(nls.localize({key:'miOpenWorkspace',comment:['&& denotes a mnemonic']},"&&Open Workspace...")),click:(menuItem,win,event)=>this.windowsService.openWorkspace(void0,{forceNewWindow:this.isOptionClick(event)})}));
constopenFolder=newMenuItem(this.likeAction('workbench.action.files.openFolder',{label:this.mnemonicLabel(nls.localize({key:'miOpenFolder',comment:['&& denotes a mnemonic']},"Open &&Folder...")),click:(menuItem,win,event)=>this.windowsService.pickFolderAndOpen({forceNewWindow:this.isOptionClick(event),telemetryExtraData:{from:telemetryFrom}})}));
letopen:Electron.MenuItem;
if(hasNoWindows){
open=newMenuItem(this.likeAction('workbench.action.files.openFileFolder',{label:this.mnemonicLabel(nls.localize({key:'miOpen',comment:['&& denotes a mnemonic']},"&&Open...")),click:(menuItem,win,event)=>this.windowsService.pickFileFolderAndOpen({forceNewWindow:this.isOptionClick(event),telemetryExtraData:{from:telemetryFrom}})}));
}else{
open=this.createMenuItem(nls.localize({key:'miOpen',comment:['&& denotes a mnemonic']},"&&Open..."),['workbench.action.files.openFileFolder','workbench.action.files.openFileFolderInNewWindow']);
}
letopenWorkspace:Electron.MenuItem;
if(hasNoWindows){
openWorkspace=newMenuItem(this.likeAction('workbench.action.openWorkspace',{label:this.mnemonicLabel(nls.localize({key:'miOpenWorkspace',comment:['&& denotes a mnemonic']},"&&Open Workspace...")),click:(menuItem,win,event)=>this.windowsService.pickWorkspaceAndOpen({forceNewWindow:this.isOptionClick(event),telemetryExtraData:{from:telemetryFrom}})}));
}else{
openWorkspace=this.createMenuItem(nls.localize({key:'miOpenWorkspace',comment:['&& denotes a mnemonic']},"&&Open Workspace..."),['workbench.action.openWorkspace','workbench.action.openWorkspaceInNewWindow']);
}
letopenFolder:Electron.MenuItem;
if(hasNoWindows){
openFolder=newMenuItem(this.likeAction('workbench.action.files.openFolder',{label:this.mnemonicLabel(nls.localize({key:'miOpenFolder',comment:['&& denotes a mnemonic']},"Open &&Folder...")),click:(menuItem,win,event)=>this.windowsService.pickFolderAndOpen({forceNewWindow:this.isOptionClick(event),telemetryExtraData:{from:telemetryFrom}})}));
}else{
openFolder=this.createMenuItem(nls.localize({key:'miOpenFolder',comment:['&& denotes a mnemonic']},"Open &&Folder..."),['workbench.action.files.openFolder','workbench.action.files.openFolderInNewWindow']);
workbenchActionsRegistry.registerWorkbenchAction(newSyncActionDescriptor(QuickOpenRecentAction,QuickOpenRecentAction.ID,QuickOpenRecentAction.LABEL),'File: Quick Open Recent...',fileCategory);
workbenchActionsRegistry.registerWorkbenchAction(newSyncActionDescriptor(OpenFileAction,OpenFileAction.ID,OpenFileAction.LABEL,{primary:KeyMod.CtrlCmd|KeyCode.KEY_O}),'File: Open File...',fileCategory);
workbenchActionsRegistry.registerWorkbenchAction(newSyncActionDescriptor(OpenFolderAction,OpenFolderAction.ID,OpenFolderAction.LABEL,{primary:KeyChord(KeyMod.CtrlCmd|KeyCode.KEY_K,KeyMod.CtrlCmd|KeyCode.KEY_O)}),'File: Open Folder...',fileCategory);
}
workbenchActionsRegistry.registerWorkbenchAction(newSyncActionDescriptor(CloseWorkspaceAction,CloseWorkspaceAction.ID,CloseWorkspaceAction.LABEL,{primary:KeyChord(KeyMod.CtrlCmd|KeyCode.KEY_K,KeyCode.KEY_F)}),'File: Close Workspace',fileCategory);
registry.registerWorkbenchAction(newSyncActionDescriptor(ShowOpenedFileInNewWindow,ShowOpenedFileInNewWindow.ID,ShowOpenedFileInNewWindow.LABEL,{primary:KeyChord(KeyMod.CtrlCmd|KeyCode.KEY_K,KeyCode.KEY_O)}),'File: Open Active File in New Window',category);
registry.registerWorkbenchAction(newSyncActionDescriptor(CompareWithSavedAction,CompareWithSavedAction.ID,CompareWithSavedAction.LABEL,{primary:KeyChord(KeyMod.CtrlCmd|KeyCode.KEY_K,KeyCode.KEY_D)}),'File: Compare Active File with Saved',category);
registry.registerWorkbenchAction(newSyncActionDescriptor(OpenFileAction,OpenFileAction.ID,OpenFileAction.LABEL,{primary:KeyMod.CtrlCmd|KeyCode.KEY_O}),'File: Open File...',category);
registry.registerWorkbenchAction(newSyncActionDescriptor(OpenFolderAction,OpenFolderAction.ID,OpenFolderAction.LABEL,{primary:KeyChord(KeyMod.CtrlCmd|KeyCode.KEY_K,KeyMod.CtrlCmd|KeyCode.KEY_O)}),'File: Open Folder...',category);