fix(marketplace): close release lifecycle gaps
This commit is contained in:
@@ -142,7 +142,7 @@ export interface PiManagedWorkerOpenerOptions {
|
||||
userDataDir: string;
|
||||
bundledSkillsDir: string;
|
||||
getSkillRoots?(): readonly string[] | Promise<readonly string[]>;
|
||||
registerActivePluginReleases?(releaseIds: readonly string[]): () => void;
|
||||
registerActivePluginReleases?(releaseIds: readonly string[]): () => void | Promise<void>;
|
||||
loadProviderInput(): Promise<PiManagedProviderInput>;
|
||||
resolveCredential(account: ProviderAccount): Promise<string | null>;
|
||||
getLocalProxyCredential?(): Promise<string | undefined>;
|
||||
@@ -335,7 +335,7 @@ export function createPiManagedWorkerOpener(
|
||||
try {
|
||||
await extension.dispose();
|
||||
} finally {
|
||||
releaseActivePluginReleases?.();
|
||||
await releaseActivePluginReleases?.();
|
||||
}
|
||||
};
|
||||
let unsubscribeExtensionInvalidation = process.subscribeInvalidation(() => {
|
||||
|
||||
Reference in New Issue
Block a user