(workspaceId: string)
| 299 | } |
| 300 | |
| 301 | async getRuns(workspaceId: string): Promise<DevToolsRunSummary[]> { |
| 302 | if (!this.enabled) { |
| 303 | return []; |
| 304 | } |
| 305 | |
| 306 | assert(workspaceId.trim().length > 0, "DevToolsService.getRuns requires a workspaceId"); |
| 307 | |
| 308 | await this.ensureLoaded(workspaceId); |
| 309 | const data = this.getOrCreateWorkspaceData(workspaceId); |
| 310 | |
| 311 | return Array.from(data.runs.keys()) |
| 312 | .map((runId) => this.buildRunSummary(data, runId)) |
| 313 | .sort((a, b) => b.startedAt.localeCompare(a.startedAt)); |
| 314 | } |
| 315 | |
| 316 | async getRunWithSteps( |
| 317 | workspaceId: string, |
no test coverage detected