()
| 129 | } |
| 130 | |
| 131 | function 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 | |
| 147 | function uxCloseBlock(blockId: string) { |
| 148 | const workspaceLayoutModel = WorkspaceLayoutModel.getInstance(); |
no test coverage detected