dockMenu.append(newMenuItem({label:mnemonicLabel(nls.localize({key:'miNewWindow',comment:['&& denotes a mnemonic']},"&&New Window")),click:()=>this.windowsService.openNewWindow()}));
dockMenu.append(newMenuItem({label:mnemonicLabel(nls.localize({key:'miNewWindow',comment:['&& denotes a mnemonic']},"New &&Window")),click:()=>this.windowsService.openNewWindow()}));
app.dock.setMenu(dockMenu);
}
...
...
@@ -379,9 +379,9 @@ export class VSCodeMenu {
constpreferences=this.getPreferencesMenu();
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(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}));
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']},"Re&&vert File"),'workbench.action.files.revert',this.windowsService.getWindowCount()>0);
constcloseWindow=newMenuItem(this.likeAction('workbench.action.closeWindow',{label:mnemonicLabel(nls.localize({key:'miCloseWindow',comment:['&& denotes a mnemonic']},"Clos&&e 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');
...
...
@@ -500,14 +500,14 @@ export class VSCodeMenu {
if(platform.isMacintosh){
undo=this.createDevToolsAwareMenuItem(nls.localize({key:'miUndo',comment:['&& denotes a mnemonic']},"&&Undo"),'undo',devTools=>devTools.undo());
redo=this.createDevToolsAwareMenuItem(nls.localize({key:'miRedo',comment:['&& denotes a mnemonic']},"&&Redo"),'redo',devTools=>devTools.redo());
cut=this.createRoleMenuItem(nls.localize({key:'miCut',comment:['&& denotes a mnemonic']},"&&Cut"),'editor.action.clipboardCutAction','cut');
copy=this.createRoleMenuItem(nls.localize({key:'miCopy',comment:['&& denotes a mnemonic']},"C&&opy"),'editor.action.clipboardCopyAction','copy');
cut=this.createRoleMenuItem(nls.localize({key:'miCut',comment:['&& denotes a mnemonic']},"Cu&&t"),'editor.action.clipboardCutAction','cut');
copy=this.createRoleMenuItem(nls.localize({key:'miCopy',comment:['&& denotes a mnemonic']},"&&Copy"),'editor.action.clipboardCopyAction','copy');
paste=this.createRoleMenuItem(nls.localize({key:'miPaste',comment:['&& denotes a mnemonic']},"&&Paste"),'editor.action.clipboardPasteAction','paste');
}else{
undo=this.createMenuItem(nls.localize({key:'miUndo',comment:['&& denotes a mnemonic']},"&&Undo"),'undo');
redo=this.createMenuItem(nls.localize({key:'miRedo',comment:['&& denotes a mnemonic']},"&&Redo"),'redo');
cut=this.createMenuItem(nls.localize({key:'miCut',comment:['&& denotes a mnemonic']},"&&Cut"),'editor.action.clipboardCutAction');
copy=this.createMenuItem(nls.localize({key:'miCopy',comment:['&& denotes a mnemonic']},"C&&opy"),'editor.action.clipboardCopyAction');
cut=this.createMenuItem(nls.localize({key:'miCut',comment:['&& denotes a mnemonic']},"Cu&&t"),'editor.action.clipboardCutAction');
copy=this.createMenuItem(nls.localize({key:'miCopy',comment:['&& denotes a mnemonic']},"&&Copy"),'editor.action.clipboardCopyAction');
paste=this.createMenuItem(nls.localize({key:'miPaste',comment:['&& denotes a mnemonic']},"&&Paste"),'editor.action.clipboardPasteAction');