(scope: ServerScopeValue, dir: string, key: string, legacy?: string[])
| 372 | } |
| 373 | |
| 374 | function serverWorkspaceTarget(scope: ServerScopeValue, dir: string, key: string, legacy?: string[]): PersistTarget { |
| 375 | if (scope !== ServerScope.local) return { storage: workspaceStorage(ScopedKey.from(scope, pathKey(dir))), key } |
| 376 | return { storage: workspaceStorage(pathKey(dir)), legacyStorageNames: legacyWorkspaceStorage(dir), key, legacy } |
| 377 | } |
| 378 | |
| 379 | function localStorageWithPrefix(prefix: string): SyncStorage { |
| 380 | const base = `${prefix}:` |
no test coverage detected