This commit is contained in:
Joao Moreno
2016-11-01 13:02:23 +01:00
parent c0227bb7d8
commit d25eeeb958
4 changed files with 17 additions and 44 deletions

View File

@@ -66,17 +66,14 @@ 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';
}
}));
const windowEventChannel = server.getChannel('windowEvent', { routeCall: () => 'main' });
const windowEventService: IWindowEventService = new WindowEventChannelClient(windowEventChannel);
services.set(IWindowEventService, windowEventService);
const activeWindowManager = new ActiveWindowManager(windowEventService);
services.set(IChoiceService, new ChoiceChannelClient(server.getChannel('choice', {
routeCall: () => activeWindowManager.activeClientId
})));
const choiceChannel = server.getChannel('choice', { routeCall: () => activeWindowManager.activeClientId });
services.set(IChoiceService, new ChoiceChannelClient(choiceChannel));
const instantiationService = new InstantiationService(services);