From f66f5f6d77901b4af4a5501699b238d53dd76361 Mon Sep 17 00:00:00 2001 From: Jaime Idolpx Date: Wed, 17 Jun 2026 12:52:14 -0400 Subject: [PATCH] feat(locate-db): add delay in progress reporting during database build --- src/app/locate-db.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/locate-db.ts b/src/app/locate-db.ts index 0570bf1..7a28430 100644 --- a/src/app/locate-db.ts +++ b/src/app/locate-db.ts @@ -214,6 +214,7 @@ export async function buildLocateDb( if (i % SCAN_PROGRESS_INTERVAL === 0) { signal?.throwIfAborted(); onProgress?.('building', i, e.path); + await new Promise(resolve => setTimeout(resolve, 0)); } } } finally {