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

Function simpleCloseStaticTab

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

Source from the content-addressed store, hash-verified

129}
130
131function simpleCloseStaticTab() {
132 const workspaceId = globalStore.get(atoms.workspaceId);
133 const tabId = globalStore.get(atoms.staticTabId);
134 const confirmClose = globalStore.get(getSettingsKeyAtom("tab:confirmclose")) ?? false;
135 getApi()
136 .closeTab(workspaceId, tabId, confirmClose)
137 .then((didClose) => {
138 if (didClose) {
139 deleteLayoutModelForTab(tabId);
140 }
141 })
142 .catch((e) => {
143 console.log("error closing tab", e);
144 });
145}
146
147function uxCloseBlock(blockId: string) {
148 const workspaceLayoutModel = WorkspaceLayoutModel.getInstance();

Callers 3

uxCloseBlockFunction · 0.85
genericCloseFunction · 0.85
registerGlobalKeysFunction · 0.85

Calls 4

getSettingsKeyAtomFunction · 0.90
getApiFunction · 0.90
deleteLayoutModelForTabFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected