6
6
import * as assert from 'assert' ;
7
7
import * as sinon from 'sinon' ;
8
8
import { timeout } from 'vs/base/common/async' ;
9
- import { Emitter } from 'vs/base/common/event' ;
9
+ import { Emitter , Event } from 'vs/base/common/event' ;
10
10
import { OS } from 'vs/base/common/platform' ;
11
11
import { URI } from 'vs/base/common/uri' ;
12
12
import { IConfigurationService } from 'vs/platform/configuration/common/configuration' ;
13
13
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' ;
15
15
import { getGalleryExtensionId } from 'vs/platform/extensionManagement/common/extensionManagementUtil' ;
16
- import { ExtensionManagementService } from 'vs/platform/extensionManagement/node/extensionManagementService' ;
17
16
import { ExtensionType } from 'vs/platform/extensions/common/extensions' ;
18
17
import { TestInstantiationService } from 'vs/platform/instantiation/test/common/instantiationServiceMock' ;
19
18
import { IProductService } from 'vs/platform/product/common/productService' ;
@@ -26,7 +25,8 @@ import { IURLService } from 'vs/platform/url/common/url';
26
25
import { NativeURLService } from 'vs/platform/url/common/urlService' ;
27
26
import { IWorkspaceTrustManagementService } from 'vs/platform/workspace/common/workspaceTrust' ;
28
27
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' ;
30
30
import { TestExtensionEnablementService } from 'vs/workbench/services/extensionManagement/test/browser/extensionEnablementService.test' ;
31
31
import { IExtensionService , IWillActivateEvent } from 'vs/workbench/services/extensions/common/extensions' ;
32
32
import { ILifecycleService } from 'vs/workbench/services/lifecycle/common/lifecycle' ;
@@ -84,15 +84,16 @@ suite('Experiment Service', () => {
84
84
instantiationService . stub ( IExtensionService , TestExtensionService ) ;
85
85
instantiationService . stub ( IExtensionService , 'onWillActivateByEvent' , activationEvent . event ) ;
86
86
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 ) ;
92
93
instantiationService . stub ( IWorkbenchExtensionEnablementService , new TestExtensionEnablementService ( instantiationService ) ) ;
93
94
instantiationService . stub ( ITelemetryService , NullTelemetryService ) ;
94
95
instantiationService . stub ( IURLService , NativeURLService ) ;
95
- instantiationService . stubPromise ( IExtensionManagementService , 'getInstalled' , [ local ] ) ;
96
+ instantiationService . stubPromise ( IWorkbenchExtensionManagementService , 'getInstalled' , [ local ] ) ;
96
97
testConfigurationService = new TestConfigurationService ( ) ;
97
98
instantiationService . stub ( IConfigurationService , testConfigurationService ) ;
98
99
instantiationService . stub ( ILifecycleService , new TestLifecycleService ( ) ) ;
0 commit comments