diff --git a/src/service-override/extensions.ts b/src/service-override/extensions.ts index 5c652c79..c8212416 100644 --- a/src/service-override/extensions.ts +++ b/src/service-override/extensions.ts @@ -433,14 +433,14 @@ export class SimpleExtensionService extends AbstractExtensionService implements public async deltaExtensions (toAdd: IExtensionWithExtHostKind[], toRemove: IExtension[]): Promise { const extHostPicker = (this._extensionHostKindPicker as LocalBrowserExtensionHostKindPicker) + for (const extension of toRemove) { + extHostPicker.removeForcedExtensionHostKind(extension.identifier.id) + } for (const extension of toAdd) { if (extension.extHostKind != null) { extHostPicker.setForcedExtensionHostKind(extension.identifier.id, extension.extHostKind) } } - for (const extension of toRemove) { - extHostPicker.removeForcedExtensionHostKind(extension.identifier.id) - } await this._handleDeltaExtensions(new DeltaExtensionsQueueItem(toAdd, toRemove)) }