Skip to content

Commit d17e30f

Browse files
authored
1 parent 241057e commit d17e30f

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

src/vs/workbench/contrib/experiments/test/electron-browser/experimentService.test.ts

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@
66
import * as assert from 'assert';
77
import * as sinon from 'sinon';
88
import { timeout } from 'vs/base/common/async';
9-
import { Emitter } from 'vs/base/common/event';
9+
import { Emitter, Event } from 'vs/base/common/event';
1010
import { OS } from 'vs/base/common/platform';
1111
import { URI } from 'vs/base/common/uri';
1212
import { IConfigurationService } from 'vs/platform/configuration/common/configuration';
1313
import { TestConfigurationService } from 'vs/platform/configuration/test/common/testConfigurationService';
14-
import { DidUninstallExtensionEvent, IExtensionIdentifier, IExtensionManagementService, ILocalExtension, InstallExtensionEvent, InstallExtensionResult } from 'vs/platform/extensionManagement/common/extensionManagement';
14+
import { DidUninstallExtensionEvent, IExtensionIdentifier, ILocalExtension, InstallExtensionEvent, InstallExtensionResult } from 'vs/platform/extensionManagement/common/extensionManagement';
1515
import { getGalleryExtensionId } from 'vs/platform/extensionManagement/common/extensionManagementUtil';
16-
import { ExtensionManagementService } from 'vs/platform/extensionManagement/node/extensionManagementService';
1716
import { ExtensionType } from 'vs/platform/extensions/common/extensions';
1817
import { TestInstantiationService } from 'vs/platform/instantiation/test/common/instantiationServiceMock';
1918
import { IProductService } from 'vs/platform/product/common/productService';
@@ -26,7 +25,8 @@ import { IURLService } from 'vs/platform/url/common/url';
2625
import { NativeURLService } from 'vs/platform/url/common/urlService';
2726
import { IWorkspaceTrustManagementService } from 'vs/platform/workspace/common/workspaceTrust';
2827
import { currentSchemaVersion, ExperimentActionType, ExperimentService, ExperimentState, getCurrentActivationRecord, IExperiment } from 'vs/workbench/contrib/experiments/common/experimentService';
29-
import { IWorkbenchExtensionEnablementService } from 'vs/workbench/services/extensionManagement/common/extensionManagement';
28+
import { IWorkbenchExtensionEnablementService, IWorkbenchExtensionManagementService } from 'vs/workbench/services/extensionManagement/common/extensionManagement';
29+
import { ExtensionManagementService } from 'vs/workbench/services/extensionManagement/common/extensionManagementService';
3030
import { TestExtensionEnablementService } from 'vs/workbench/services/extensionManagement/test/browser/extensionEnablementService.test';
3131
import { IExtensionService, IWillActivateEvent } from 'vs/workbench/services/extensions/common/extensions';
3232
import { ILifecycleService } from 'vs/workbench/services/lifecycle/common/lifecycle';
@@ -84,15 +84,16 @@ suite('Experiment Service', () => {
8484
instantiationService.stub(IExtensionService, TestExtensionService);
8585
instantiationService.stub(IExtensionService, 'onWillActivateByEvent', activationEvent.event);
8686
instantiationService.stub(IUriIdentityService, UriIdentityService);
87-
instantiationService.stub(IExtensionManagementService, ExtensionManagementService);
88-
instantiationService.stub(IExtensionManagementService, 'onInstallExtension', installEvent.event);
89-
instantiationService.stub(IExtensionManagementService, 'onDidInstallExtensions', didInstallEvent.event);
90-
instantiationService.stub(IExtensionManagementService, 'onUninstallExtension', uninstallEvent.event);
91-
instantiationService.stub(IExtensionManagementService, 'onDidUninstallExtension', didUninstallEvent.event);
87+
instantiationService.stub(IWorkbenchExtensionManagementService, ExtensionManagementService);
88+
instantiationService.stub(IWorkbenchExtensionManagementService, 'onInstallExtension', installEvent.event);
89+
instantiationService.stub(IWorkbenchExtensionManagementService, 'onDidInstallExtensions', didInstallEvent.event);
90+
instantiationService.stub(IWorkbenchExtensionManagementService, 'onUninstallExtension', uninstallEvent.event);
91+
instantiationService.stub(IWorkbenchExtensionManagementService, 'onDidUninstallExtension', didUninstallEvent.event);
92+
instantiationService.stub(IWorkbenchExtensionManagementService, 'onDidChangeProfileExtensions', Event.None);
9293
instantiationService.stub(IWorkbenchExtensionEnablementService, new TestExtensionEnablementService(instantiationService));
9394
instantiationService.stub(ITelemetryService, NullTelemetryService);
9495
instantiationService.stub(IURLService, NativeURLService);
95-
instantiationService.stubPromise(IExtensionManagementService, 'getInstalled', [local]);
96+
instantiationService.stubPromise(IWorkbenchExtensionManagementService, 'getInstalled', [local]);
9697
testConfigurationService = new TestConfigurationService();
9798
instantiationService.stub(IConfigurationService, testConfigurationService);
9899
instantiationService.stub(ILifecycleService, new TestLifecycleService());

0 commit comments

Comments
 (0)