(workspaceId: string)
| 111 | private static readonly KEY = STORAGE_KEYS.WORKSPACE_RECENCY |
| 112 | |
| 113 | static touch(workspaceId: string): void { |
| 114 | const map = WorkspaceRecencyStorage.getAll() |
| 115 | map[workspaceId] = Date.now() |
| 116 | BrowserStorage.setItem(WorkspaceRecencyStorage.KEY, map) |
| 117 | } |
| 118 | |
| 119 | static getAll(): Record<string, number> { |
| 120 | return BrowserStorage.getItem<Record<string, number>>(WorkspaceRecencyStorage.KEY, {}) |
no test coverage detected