mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-02 05:31:02 +00:00
fix(extensions): handle individual extension update check failures
checkForAllExtensionUpdates() used Promise.all without per-promise catch handlers. A single extension's update check failure would reject the entire batch, leaving remaining extensions stuck in CHECKING_FOR_UPDATES state. Now catches per-extension and reports ERROR.
This commit is contained in:
parent
3bce84d5da
commit
c83f9d2a7b
1 changed files with 3 additions and 3 deletions
|
|
@ -1232,9 +1232,9 @@ export class ExtensionManager {
|
||||||
}
|
}
|
||||||
callback(extension.name, ExtensionUpdateState.CHECKING_FOR_UPDATES);
|
callback(extension.name, ExtensionUpdateState.CHECKING_FOR_UPDATES);
|
||||||
promises.push(
|
promises.push(
|
||||||
checkForExtensionUpdate(extension, this).then((state) =>
|
checkForExtensionUpdate(extension, this)
|
||||||
callback(extension.name, state),
|
.then((state) => callback(extension.name, state))
|
||||||
),
|
.catch(() => callback(extension.name, ExtensionUpdateState.ERROR)),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
await Promise.all(promises);
|
await Promise.all(promises);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue