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

Function persistOpenTabs

frontend/src/react/stores/sqlEditor/tab.ts:143–150  ·  view source on GitHub ↗
(openTabs: PersistentTab[])

Source from the content-addressed store, hash-verified

141};
142
143const persistOpenTabs = (openTabs: PersistentTab[]) => {
144 const scope = currentScope();
145 if (!scope) return;
146 safeWrite(
147 storageKeySqlEditorTabs(scope.wsScope, scope.project, scope.email),
148 openTabs
149 );
150};
151
152const persistCurrentTabId = (id: string) => {
153 const scope = currentScope();

Callers 5

setOpenTabListOrderFunction · 0.85
addTabFunction · 0.85
closeTabFunction · 0.85
updateTabFunction · 0.85
hydrateProjectTabsFunction · 0.85

Calls 3

storageKeySqlEditorTabsFunction · 0.90
currentScopeFunction · 0.70
safeWriteFunction · 0.70

Tested by

no test coverage detected