MCPcopy Create free account
hub / github.com/bytebase/bytebase / getCurrentSQLEditorTab

Function getCurrentSQLEditorTab

frontend/src/react/stores/sqlEditor/tab.ts:519–522  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

517 * callbacks that need the tab at fire time rather than at render time.
518 */
519export 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.

Callers 2

ChatPanelFunction · 0.90
AIContextProviderFunction · 0.90

Calls 2

getSQLEditorTabsStateFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected