From 9b863168ff9e4bf63773b496138a31d61bf2aa87 Mon Sep 17 00:00:00 2001 From: Evan Reichard Date: Thu, 30 Apr 2026 11:53:43 -0400 Subject: [PATCH] fix: handle unhandled promise rejection in background read init --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 48b6c6b..ec1cb91 100644 --- a/index.ts +++ b/index.ts @@ -445,7 +445,7 @@ export default function (pi: ExtensionAPI) { const absolutePath = path.resolve(ctx.cwd, filePath); // daemonDiagnostics triggers getOrCreateEntry + syncFile in the daemon. // We don't await it — just fire and forget so the server starts warming up. - void daemonDiagnostics(absolutePath); + void daemonDiagnostics(absolutePath).catch(() => {}); } catch { // Silently ignore — unsupported file type, missing binary, etc. }