@@ -16,11 +16,10 @@ import { IConfigurationService } from "vs/platform/configuration/common/configur
1616import { ConfigurationService } from "vs/platform/configuration/node/configurationService" ;
1717import { IDialogService } from "vs/platform/dialogs/common/dialogs" ;
1818import { DialogChannelClient } from "vs/platform/dialogs/node/dialogIpc" ;
19- import { IDownloadService } from "vs/platform/download/common/download" ;
20- import { DownloadServiceChannelClient } from "vs/platform/download/node/downloadIpc" ;
2119import { IEnvironmentService , ParsedArgs } from "vs/platform/environment/common/environment" ;
2220import { EnvironmentService } from "vs/platform/environment/node/environmentService" ;
2321import { IExtensionManagementService , IExtensionGalleryService } from "vs/platform/extensionManagement/common/extensionManagement" ;
22+ import { ExtensionGalleryChannel } from "vs/platform/extensionManagement/node/extensionGalleryIpc" ;
2423import { ExtensionGalleryService } from "vs/platform/extensionManagement/node/extensionGalleryService" ;
2524import { ExtensionManagementChannel } from "vs/platform/extensionManagement/node/extensionManagementIpc" ;
2625import { ExtensionManagementService } from "vs/platform/extensionManagement/node/extensionManagementService" ;
@@ -209,7 +208,6 @@ export class MainServer extends Server {
209208 this . services . set ( IExtensionGalleryService , new SyncDescriptor ( ExtensionGalleryService ) ) ;
210209 this . services . set ( ITelemetryService , NullTelemetryService ) ; // TODO: telemetry
211210 this . services . set ( IDialogService , new DialogChannelClient ( this . ipc . getChannel ( "dialog" , router ) ) ) ;
212- this . services . set ( IDownloadService , new DownloadServiceChannelClient ( this . ipc . getChannel ( "download" , router ) , ( ) => getUriTransformer ( "renderer" ) ) ) ;
213211 this . services . set ( IExtensionManagementService , new SyncDescriptor ( ExtensionManagementService ) ) ;
214212
215213 const instantiationService = new InstantiationService ( this . services ) ;
@@ -223,6 +221,9 @@ export class MainServer extends Server {
223221 const extensionsService = this . services . get ( IExtensionManagementService ) as IExtensionManagementService ;
224222 const extensionsChannel = new ExtensionManagementChannel ( extensionsService , ( context ) => getUriTransformer ( context . remoteAuthority ) ) ;
225223 this . ipc . registerChannel ( "extensions" , extensionsChannel ) ;
224+ const galleryService = this . services . get ( IExtensionGalleryService ) as IExtensionGalleryService ;
225+ const galleryChannel = new ExtensionGalleryChannel ( galleryService ) ;
226+ this . ipc . registerChannel ( "gallery" , galleryChannel ) ;
226227 } ) ;
227228 }
228229
0 commit comments