fix(workspace): wait for palette probes without Promise.allSettled

The web tsconfig lib predates Promise.allSettled; use Promise.all over
rejection-safe probes instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
4grayandClaude Opus 5.5 committed 2026-09-27 00:00:31 +02:00
1 parent b78b3a75e7
commit 01e90ca7e1
1 file changed
+6 -1
@@ -58,7 +58,12 @@ export class WorkspaceShellCommandPaletteService {
].filter((load): load is Promise<void> => load !== undefined);
if (embeddedMpvSupportLoads.length > 0) {
this.commandPaletteOpening = true;
void Promise.allSettled(embeddedMpvSupportLoads).finally(() => {
// A failed probe only hides its commands; it must not block opening.
void Promise.all(
embeddedMpvSupportLoads.map((load) =>
load.catch(() => undefined)
)
).finally(() => {
this.commandPaletteOpening = false;
this.openResolvedCommandPalette(ctx, initialQuery);
});