@@ -15,10 +15,7 @@ import { NativeRemoteExtensionManagementService } from 'vs/workbench/services/ex
1515import { ILabelService } from 'vs/platform/label/common/label' ;
1616import { IExtension } from 'vs/platform/extensions/common/extensions' ;
1717import { IExtensionGalleryService } from 'vs/platform/extensionManagement/common/extensionManagement' ;
18- import { IProductService } from 'vs/platform/product/common/productService' ;
19- import { IConfigurationService } from 'vs/platform/configuration/common/configuration' ;
20- import { ILogService } from 'vs/platform/log/common/log' ;
21- import { INativeWorkbenchEnvironmentService } from 'vs/workbench/services/environment/electron-sandbox/environmentService' ;
18+ import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation' ;
2219
2320export class ExtensionManagementServerService implements IExtensionManagementServerService {
2421
@@ -34,17 +31,14 @@ export class ExtensionManagementServerService implements IExtensionManagementSer
3431 @IRemoteAgentService remoteAgentService : IRemoteAgentService ,
3532 @ILabelService labelService : ILabelService ,
3633 @IExtensionGalleryService galleryService : IExtensionGalleryService ,
37- @IProductService productService : IProductService ,
38- @IConfigurationService configurationService : IConfigurationService ,
39- @ILogService logService : ILogService ,
40- @INativeWorkbenchEnvironmentService environmentService : INativeWorkbenchEnvironmentService
34+ @IInstantiationService instantiationService : IInstantiationService ,
4135 ) {
4236 const localExtensionManagementService = new ExtensionManagementChannelClient ( sharedProcessService . getChannel ( 'extensions' ) ) ;
4337
4438 this . _localExtensionManagementServer = { extensionManagementService : localExtensionManagementService , id : 'local' , label : localize ( 'local' , "Local" ) } ;
4539 const remoteAgentConnection = remoteAgentService . getConnection ( ) ;
4640 if ( remoteAgentConnection ) {
47- const extensionManagementService = new NativeRemoteExtensionManagementService ( remoteAgentConnection . getChannel < IChannel > ( 'extensions' ) , this . localExtensionManagementServer , logService , galleryService , configurationService , productService , environmentService ) ;
41+ const extensionManagementService = instantiationService . createInstance ( NativeRemoteExtensionManagementService , remoteAgentConnection . getChannel < IChannel > ( 'extensions' ) , this . localExtensionManagementServer ) ;
4842 this . remoteExtensionManagementServer = {
4943 id : 'remote' ,
5044 extensionManagementService,
0 commit comments