saveAllFiles() carried a 200ms inter-operation sleep "to prevent race conditions" plus a 300ms post-error "settle" sleep. But saveFile() is fully awaited and each iteration renames a distinct file, so the saves are already serialized — the sleeps were the band-aid for an earlier missing-await bug (the "ensure properly awaited" comment marks where that got fixed). Remove both: correctness comes from the awaits, the operations are independent, and Save All no longer pays 200ms per file (≈10s on a 50-file batch). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| app.js | ||
| excel.js | ||
| filter.js | ||
| preview.js | ||
| resize.js | ||
| scanner.js | ||
| selection.js | ||
| sort.js | ||
| spreadsheet.js | ||
| store.js | ||
| tree.js | ||
| utils.js | ||
| validator.js | ||