mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 11:38:51 +01:00
Use URI transformer for download service channel
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user