From 8198bc8f8e5c4b05b75e31cc80689f3b96b1e8cd Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Sun, 26 Oct 2025 00:38:23 +0200 Subject: [PATCH] Adopt AsyncIterableProducer --- .../workbench/services/extensions/browser/extensionService.ts | 4 ++-- .../extensions/electron-browser/nativeExtensionService.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/vs/workbench/services/extensions/browser/extensionService.ts b/src/vs/workbench/services/extensions/browser/extensionService.ts index 69aad42da5750..880beae091653 100644 --- a/src/vs/workbench/services/extensions/browser/extensionService.ts +++ b/src/vs/workbench/services/extensions/browser/extensionService.ts @@ -41,7 +41,7 @@ import { IRemoteAgentService } from '../../remote/common/remoteAgentService.js'; import { IRemoteExplorerService } from '../../remote/common/remoteExplorerService.js'; import { IUserDataInitializationService } from '../../userData/browser/userDataInit.js'; import { IUserDataProfileService } from '../../userDataProfile/common/userDataProfile.js'; -import { AsyncIterableEmitter, AsyncIterableObject } from '../../../../base/common/async.js'; +import { AsyncIterableEmitter, AsyncIterableProducer } from '../../../../base/common/async.js'; export class ExtensionService extends AbstractExtensionService implements IExtensionService { @@ -152,7 +152,7 @@ export class ExtensionService extends AbstractExtensionService implements IExten } protected _resolveExtensions(): AsyncIterable { - return new AsyncIterableObject(emitter => this._doResolveExtensions(emitter)); + return new AsyncIterableProducer(emitter => this._doResolveExtensions(emitter)); } private async _doResolveExtensions(emitter: AsyncIterableEmitter): Promise { diff --git a/src/vs/workbench/services/extensions/electron-browser/nativeExtensionService.ts b/src/vs/workbench/services/extensions/electron-browser/nativeExtensionService.ts index a86ef71415987..3080657390af0 100644 --- a/src/vs/workbench/services/extensions/electron-browser/nativeExtensionService.ts +++ b/src/vs/workbench/services/extensions/electron-browser/nativeExtensionService.ts @@ -57,7 +57,7 @@ import { IHostService } from '../../host/browser/host.js'; import { ILifecycleService, LifecyclePhase } from '../../lifecycle/common/lifecycle.js'; import { IRemoteAgentService } from '../../remote/common/remoteAgentService.js'; import { IRemoteExplorerService } from '../../remote/common/remoteExplorerService.js'; -import { AsyncIterableEmitter, AsyncIterableObject } from '../../../../base/common/async.js'; +import { AsyncIterableEmitter, AsyncIterableProducer } from '../../../../base/common/async.js'; export class NativeExtensionService extends AbstractExtensionService implements IExtensionService { @@ -318,7 +318,7 @@ export class NativeExtensionService extends AbstractExtensionService implements } protected _resolveExtensions(): AsyncIterable { - return new AsyncIterableObject(emitter => this._doResolveExtensions(emitter)); + return new AsyncIterableProducer(emitter => this._doResolveExtensions(emitter)); } private async _doResolveExtensions(emitter: AsyncIterableEmitter): Promise {