(index: number)
| 281 | } |
| 282 | |
| 283 | function switchTabAbs(index: number) { |
| 284 | console.log("switchTabAbs", index); |
| 285 | const ws = globalStore.get(atoms.workspace); |
| 286 | const newTabIdx = index - 1; |
| 287 | const tabids = getAllTabs(ws); |
| 288 | if (newTabIdx < 0 || newTabIdx >= tabids.length) { |
| 289 | return; |
| 290 | } |
| 291 | const newActiveTabId = tabids[newTabIdx]; |
| 292 | getApi().setActiveTab(newActiveTabId); |
| 293 | } |
| 294 | |
| 295 | function switchTab(offset: number) { |
| 296 | console.log("switchTab", offset); |
no test coverage detected