(id: string)
| 225 | } |
| 226 | |
| 227 | finishStep(id: string) { |
| 228 | if (!this.enabled) { |
| 229 | return |
| 230 | } |
| 231 | |
| 232 | const step = this.pendingSteps.get(id) |
| 233 | if (!step) { |
| 234 | return |
| 235 | } |
| 236 | |
| 237 | this.pendingSteps.delete(id) |
| 238 | this.completedSteps.push({ |
| 239 | durationMs: Math.max(Date.now() - step.startedAt, 0), |
| 240 | id, |
| 241 | type: step.type, |
| 242 | }) |
| 243 | } |
| 244 | |
| 245 | async captureCommandStarted(command: string, properties: TelemetryProperties) { |
| 246 | this.mergeProperties(properties) |
no test coverage detected