(workspaceId: string)
| 285 | } |
| 286 | |
| 287 | async finalizeStaleSteps(workspaceId: string): Promise<void> { |
| 288 | // Stale cleanup runs regardless of the current enabled state: steps that were |
| 289 | // started while logging was ON should be properly finalized even if the user |
| 290 | // later disables debug logging. |
| 291 | assert( |
| 292 | workspaceId.trim().length > 0, |
| 293 | "DevToolsService.finalizeStaleSteps requires a workspaceId" |
| 294 | ); |
| 295 | |
| 296 | await this.ensureLoaded(workspaceId); |
| 297 | const data = this.getOrCreateWorkspaceData(workspaceId); |
| 298 | await this.finalizeStaleStepsForLoadedWorkspace(workspaceId, data); |
| 299 | } |
| 300 | |
| 301 | async getRuns(workspaceId: string): Promise<DevToolsRunSummary[]> { |
| 302 | if (!this.enabled) { |
no test coverage detected