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

Function persistCurrentTabId

frontend/src/react/stores/sqlEditor/tab.ts:152–159  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

150};
151
152const persistCurrentTabId = (id: string) => {
153 const scope = currentScope();
154 if (!scope) return;
155 safeWrite(
156 storageKeySqlEditorCurrentTab(scope.wsScope, scope.project, scope.email),
157 id
158 );
159};
160
161const readOpenTabs = (
162 wsScope: string,

Callers 4

setCurrentTabIdFunction · 0.85
addTabFunction · 0.85
closeTabFunction · 0.85
hydrateProjectTabsFunction · 0.85

Calls 3

currentScopeFunction · 0.70
safeWriteFunction · 0.70

Tested by

no test coverage detected