MCPcopy Create free account
hub / github.com/experdot/pointer / getCurrentAccountScope

Function getCurrentAccountScope

src/renderer/src/persistence/scope.ts:12–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10}
11
12export function getCurrentAccountScope(): AccountScope {
13 const scope = tryGetCurrentAccountScope()
14 if (!scope) {
15 throw new Error('No current account selected')
16 }
17 return scope
18}
19
20export function tryGetCurrentWorkspaceScope(): WorkspaceScope | null {
21 const context = persistence.database.getActiveContext()

Callers 5

workspaceStore.tsFile · 0.90
persistFunction · 0.90
settingsStore.tsFile · 0.90
persistFunction · 0.90
layoutStore.tsFile · 0.90

Calls 1

Tested by

no test coverage detected