// 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{
privateupdateWorkspaceMenuItems():void{
...
@@ -877,10 +900,25 @@ export class CodeMenu {
...
@@ -877,10 +900,25 @@ export class CodeMenu {
constbringAllToFront=newMenuItem({label:nls.localize('mBringToFront',"Bring All to Front"),role:'front',enabled:this.windowsService.getWindowCount()>0});
constbringAllToFront=newMenuItem({label:nls.localize('mBringToFront',"Bring All to Front"),role:'front',enabled:this.windowsService.getWindowCount()>0});
constswitchWindow=this.createMenuItem(nls.localize({key:'miSwitchWindow',comment:['&& denotes a mnemonic']},"Switch &&Window..."),'workbench.action.switchWindow');
constswitchWindow=this.createMenuItem(nls.localize({key:'miSwitchWindow',comment:['&& denotes a mnemonic']},"Switch &&Window..."),'workbench.action.switchWindow');
this.nativeTabMenuItems.push(newMenuItem({label:nls.localize('mShowNextTab',"Show Next Tab"),enabled:hasMultipleWindows,click:()=>Menu.sendActionToFirstResponder('selectNextTab:')}));
this.nativeTabMenuItems.push(newMenuItem({label:nls.localize('mMoveTabToNewWindow',"Move Tab to New Window"),enabled:hasMultipleWindows,click:()=>Menu.sendActionToFirstResponder('moveTabToNewWindow:')}));
this.nativeTabMenuItems.push(newMenuItem({label:nls.localize('mMergeAllWindows',"Merge All Windows"),enabled:hasMultipleWindows,click:()=>Menu.sendActionToFirstResponder('mergeAllWindows:')}));