* Start tracking batch progress (resets counters).
(total: number)
| 461 | * Start tracking batch progress (resets counters). |
| 462 | */ |
| 463 | startBatchProgress(total: number): void { |
| 464 | this.batchState = { |
| 465 | completed: 0, |
| 466 | total, |
| 467 | startTime: Date.now(), |
| 468 | filesAnalyzed: 0 |
| 469 | }; |
| 470 | this.postMessage({ |
| 471 | command: 'batchProgress', |
| 472 | completed: 0, |
| 473 | total, |
| 474 | filesAnalyzed: 0, |
| 475 | elapsed: 0 |
| 476 | }); |
| 477 | } |
| 478 | |
| 479 | /** |
| 480 | * Mark a batch as completed (increments cumulative counter). |
no test coverage detected