fix(coding-agent,ai): finalize provider unregister lifecycle and dependency security updates fixes #1669
This commit is contained in:
@@ -131,8 +131,7 @@ export function createExtensionRuntime(): ExtensionRuntime {
|
||||
runtime.pendingProviderRegistrations.push({ name, config });
|
||||
},
|
||||
unregisterProvider: (name) => {
|
||||
const idx = runtime.pendingProviderRegistrations.findIndex((r) => r.name === name);
|
||||
if (idx !== -1) runtime.pendingProviderRegistrations.splice(idx, 1);
|
||||
runtime.pendingProviderRegistrations = runtime.pendingProviderRegistrations.filter((r) => r.name !== name);
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -1122,7 +1122,7 @@ export interface ExtensionAPI {
|
||||
*
|
||||
* Removes all models belonging to the named provider and restores any
|
||||
* built-in models that were overridden by it. Has no effect if the provider
|
||||
* was not registered by this extension API.
|
||||
* is not currently registered.
|
||||
*
|
||||
* Like `registerProvider`, this takes effect immediately when called after
|
||||
* the initial load phase.
|
||||
|
||||
Reference in New Issue
Block a user