Use URI transformer for download service channel

This commit is contained in:
Sandeep Somavarapu
2018-08-20 23:39:05 +02:00
parent 8eb36b9cf4
commit 84ad71193c
4 changed files with 10 additions and 7 deletions

View File

@@ -45,6 +45,7 @@ import { IDialogService } from 'vs/platform/dialogs/common/dialogs';
import { IDisposable, dispose } from 'vs/base/common/lifecycle';
import { IDownloadService } from 'vs/platform/download/common/download';
import { DownloadServiceChannelClient } from 'vs/platform/download/node/downloadIpc';
import { DefaultURITransformer } from 'vs/base/common/uriIpc';
export interface ISharedProcessConfiguration {
readonly machineId: string;
@@ -91,7 +92,7 @@ function main(server: Server, initData: ISharedProcessInitData, configuration: I
services.set(IDialogService, new DialogChannelClient(dialogChannel));
const downloadChannel = server.getChannel('download', { routeCall: route, routeEvent: route });
services.set(IDownloadService, new DownloadServiceChannelClient(downloadChannel));
services.set(IDownloadService, new DownloadServiceChannelClient(downloadChannel, DefaultURITransformer));
const instantiationService = new InstantiationService(services);