windowEventService: ipc

This commit is contained in:
Sandeep Somavarapu
2016-09-22 08:32:51 +02:00
parent 32c6a6a2f2
commit e971497cee
5 changed files with 142 additions and 1 deletions
+9
View File
@@ -30,6 +30,8 @@ import { TelemetryAppenderChannel } from 'vs/platform/telemetry/common/telemetry
import { TelemetryService, ITelemetryServiceConfig } from 'vs/platform/telemetry/common/telemetryService';
import { AppInsightsAppender } from 'vs/platform/telemetry/node/appInsightsAppender';
import { ISharedProcessInitData } from './sharedProcess';
import { WindowEventChannelClient } from 'vs/code/common/windowsIpc';
import { IWindowEventService } from 'vs/code/common/windows';
function quit(err?: Error) {
if (err) {
@@ -62,6 +64,13 @@ function main(server: Server, initData: ISharedProcessInitData): void {
services.set(IConfigurationService, new SyncDescriptor(ConfigurationService));
services.set(IRequestService, new SyncDescriptor(RequestService));
const windowEventService:IWindowEventService = new WindowEventChannelClient(server.getChannel('windowEvent', {
routeCall: (command: any, arg: any) => {
return 'main';
}
}));
services.set(IWindowEventService, windowEventService);
const instantiationService = new InstantiationService(services);
instantiationService.invokeFunction(accessor => {