MCPcopy
hub / github.com/wavetermdev/waveterm / getStaticTabBlockCount

Function getStaticTabBlockCount

frontend/app/store/keymodel.ts:123–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121}
122
123function getStaticTabBlockCount(): number {
124 const tabId = globalStore.get(atoms.staticTabId);
125 const tabORef = WOS.makeORef("tab", tabId);
126 const tabAtom = WOS.getWaveObjectAtom<Tab>(tabORef);
127 const tabData = globalStore.get(tabAtom);
128 return tabData?.blockids?.length ?? 0;
129}
130
131function simpleCloseStaticTab() {
132 const workspaceId = globalStore.get(atoms.workspaceId);

Callers 2

uxCloseBlockFunction · 0.85
genericCloseFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected