constrecentMenuItem=newMenuItem({label:this.mnemonicLabel(nls.localize({key:'miRecent',comment:['&& denotes a mnemonic']},"&&Recent")),submenu:recentMenu,enabled:recentMenu.items.length>0});
if(this.shouldDrawMenu('Recent')){
if(this.shouldFallback('Recent')){
this.setFallbackMenuById(recentMenu,'Recent');
}else{
this.setMenuById(recentMenu,'Recent');
}
menubar.append(recentMenuItem);
}
// Selection
constselectionMenu=newMenu();
constselectionMenuItem=newMenuItem({label:this.mnemonicLabel(nls.localize({key:'mSelection',comment:['&& denotes a mnemonic']},"&&Selection")),submenu:selectionMenu});
...
...
@@ -278,6 +241,15 @@ export class Menubar {
menubar.append(gotoMenuItem);
}
// Terminal
constterminalMenu=newMenu();
constterminalMenuItem=newMenuItem({label:this.mnemonicLabel(nls.localize({key:'mTerminal',comment:['&& denotes a mnemonic']},"Ter&&minal")),submenu:terminalMenu});
if(this.shouldDrawMenu('Terminal')){
this.setMenuById(terminalMenu,'Terminal');
menubar.append(terminalMenuItem);
}
// Debug
constdebugMenu=newMenu();
constdebugMenuItem=newMenuItem({label:this.mnemonicLabel(nls.localize({key:'mDebug',comment:['&& denotes a mnemonic']},"&&Debug")),submenu:debugMenu});
...
...
@@ -291,8 +263,8 @@ export class Menubar {
consttaskMenu=newMenu();
consttaskMenuItem=newMenuItem({label:this.mnemonicLabel(nls.localize({key:'mTask',comment:['&& denotes a mnemonic']},"&&Tasks")),submenu:taskMenu});
if(this.shouldDrawMenu('Task')){
this.setMenuById(taskMenu,'Task');
if(this.shouldDrawMenu('Tasks')){
this.setMenuById(taskMenu,'Tasks');
menubar.append(taskMenuItem);
}
...
...
@@ -309,16 +281,18 @@ export class Menubar {
}
// Preferences
constpreferencesMenu=newMenu();
constpreferencesMenuItem=newMenuItem({label:this.mnemonicLabel(nls.localize({key:'mPreferences',comment:['&& denotes a mnemonic']},"&&Preferences")),submenu:preferencesMenu});
if(!isMacintosh){
constpreferencesMenu=newMenu();
constpreferencesMenuItem=newMenuItem({label:this.mnemonicLabel(nls.localize({key:'mPreferences',comment:['&& denotes a mnemonic']},"&&Preferences")),submenu:preferencesMenu});
preferences=newMenuItem({label:this.mnemonicLabel(nls.localize({key:'miPreferences',comment:['&& denotes a mnemonic']},"&&Preferences")),submenu:preferencesMenu});