()
| 517 | * callbacks that need the tab at fire time rather than at render time. |
| 518 | */ |
| 519 | export const getCurrentSQLEditorTab = (): SQLEditorTab | undefined => { |
| 520 | const s = getSQLEditorTabsState(); |
| 521 | return s.tabsById.get(s.currentTabId); |
| 522 | }; |
| 523 | |
| 524 | /** |
| 525 | * Live read of a query context by (database, contextId) across all tabs. |
no test coverage detected