MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / removeTabView

Method removeTabView

emain/emain-window.ts:628–642  ·  view source on GitHub ↗
(tabId: string, force: boolean)

Source from the content-addressed store, hash-verified

626 }
627
628 removeTabView(tabId: string, force: boolean) {
629 if (!force && this.activeTabView?.waveTabId == tabId) {
630 console.log("cannot remove active tab", tabId, this.waveWindowId);
631 return;
632 }
633 const tabView = this.allLoadedTabViews.get(tabId);
634 if (tabView == null) {
635 console.log("removeTabView -- tabView not found", tabId, this.waveWindowId);
636 // the tab was never loaded, so just return
637 return;
638 }
639 this.contentView.removeChildView(tabView);
640 this.allLoadedTabViews.delete(tabId);
641 tabView.destroy();
642 }
643
644 destroy() {
645 console.log("destroy win", this.waveWindowId);

Callers 2

removeTabViewLaterMethod · 0.95
tryEvictEntryFunction · 0.80

Calls 3

getMethod · 0.80
deleteMethod · 0.80
destroyMethod · 0.45

Tested by

no test coverage detected