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