mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
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:
1 parent
b78b3a75e7
commit
01e90ca7e1
1 file changed
+6
-1
+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);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user