fix: handle unhandled promise rejection in background read init
This commit is contained in:
2
index.ts
2
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.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user