// Update specific items that are dependent on window count
elseif(this.currentEnableNativeTabs){
this.nativeTabMenuItems.forEach(item=>{
if(item){
item.enabled=e.newCount>1;
}
});
}
}
privateinstall():void{
...
...
@@ -612,19 +586,16 @@ export class Menubar {
constbringAllToFront=newMenuItem({label:nls.localize('mBringToFront',"Bring All to Front"),role:'front',enabled:this.windowsMainService.getWindowCount()>0});
constswitchWindow=this.createMenuItem(nls.localize({key:'miSwitchWindow',comment:['&& denotes a mnemonic']},"Switch &&Window..."),'workbench.action.switchWindow');
this.nativeTabMenuItems.push(this.createRoleMenuItem(nls.localize('mShowNextTab',"Show Next Tab"),'workbench.action.showNextWindowTab','selectNextTab'));
this.nativeTabMenuItems.push(this.createRoleMenuItem(nls.localize('mMoveTabToNewWindow',"Move Tab to New Window"),'workbench.action.moveWindowTabToNewWindow','moveTabToNewWindow'));
this.nativeTabMenuItems.push(this.createRoleMenuItem(nls.localize('mMergeAllWindows',"Merge All Windows"),'workbench.action.mergeAllWindowTabs','mergeAllWindows'));
nativeTabMenuItems.push(this.createRoleMenuItem(nls.localize('mShowNextTab',"Show Next Tab"),'workbench.action.showNextWindowTab','selectNextTab'));
nativeTabMenuItems.push(this.createRoleMenuItem(nls.localize('mMoveTabToNewWindow',"Move Tab to New Window"),'workbench.action.moveWindowTabToNewWindow','moveTabToNewWindow'));
nativeTabMenuItems.push(this.createRoleMenuItem(nls.localize('mMergeAllWindows',"Merge All Windows"),'workbench.action.mergeAllWindowTabs','mergeAllWindows'));
// Update specific items that are dependent on window count
elseif(this.currentEnableNativeTabs){
this.nativeTabMenuItems.forEach(item=>{
if(item){
item.enabled=e.newCount>1;
}
});
}
}
privateupdateWorkspaceMenuItems():void{
...
...
@@ -968,19 +955,16 @@ export class CodeMenu {
constbringAllToFront=newMenuItem({label:nls.localize('mBringToFront',"Bring All to Front"),role:'front',enabled:this.windowsMainService.getWindowCount()>0});
constswitchWindow=this.createMenuItem(nls.localize({key:'miSwitchWindow',comment:['&& denotes a mnemonic']},"Switch &&Window..."),'workbench.action.switchWindow');
this.nativeTabMenuItems.push(this.createRoleMenuItem(nls.localize('mShowNextTab',"Show Next Tab"),'workbench.action.showNextWindowTab','selectNextTab'));
this.nativeTabMenuItems.push(this.createRoleMenuItem(nls.localize('mMoveTabToNewWindow',"Move Tab to New Window"),'workbench.action.moveWindowTabToNewWindow','moveTabToNewWindow'));
this.nativeTabMenuItems.push(this.createRoleMenuItem(nls.localize('mMergeAllWindows',"Merge All Windows"),'workbench.action.mergeAllWindowTabs','mergeAllWindows'));
nativeTabMenuItems.push(this.createRoleMenuItem(nls.localize('mShowNextTab',"Show Next Tab"),'workbench.action.showNextWindowTab','selectNextTab'));
nativeTabMenuItems.push(this.createRoleMenuItem(nls.localize('mMoveTabToNewWindow',"Move Tab to New Window"),'workbench.action.moveWindowTabToNewWindow','moveTabToNewWindow'));
nativeTabMenuItems.push(this.createRoleMenuItem(nls.localize('mMergeAllWindows',"Merge All Windows"),'workbench.action.mergeAllWindowTabs','mergeAllWindows'));