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

Function readOpenTabs

frontend/src/react/stores/sqlEditor/tab.ts:161–170  ·  view source on GitHub ↗
(
  wsScope: string,
  project: string,
  email: string
)

Source from the content-addressed store, hash-verified

159};
160
161const readOpenTabs = (
162 wsScope: string,
163 project: string,
164 email: string
165): PersistentTab[] =>
166 safeRead<PersistentTab[]>(
167 storageKeySqlEditorTabs(wsScope, project, email),
168 (v) => (isPersistentTabArray(v) ? v : undefined),
169 []
170 );
171
172export const useSQLEditorTabsStore: UseBoundStore<
173 StoreApi<SQLEditorTabsState>

Callers 1

hydrateProjectTabsFunction · 0.85

Calls 3

storageKeySqlEditorTabsFunction · 0.90
isPersistentTabArrayFunction · 0.85
safeReadFunction · 0.70

Tested by

no test coverage detected