fix: handle unhandled promise rejection in background read init

This commit is contained in:
2026-04-30 11:53:43 -04:00
parent b614e700fd
commit 9b863168ff

View File

@@ -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.
}