WindowEventChannel: Create it before registerting channel - Initial window events are bufferred

This commit is contained in:
Sandeep Somavarapu
2016-09-22 11:02:55 +02:00
parent cb19176a04
commit 7baf009e27
5 changed files with 12 additions and 10 deletions

View File

@@ -75,9 +75,7 @@ function main(server: Server, initData: ISharedProcessInitData): void {
const activeWindowManager = new ActiveWindowManager(windowEventService);
services.set(IChoiceService, new ChoiceChannelClient(server.getChannel('choice', {
routeCall: (command: any, arg: any) => {
return activeWindowManager.activeWindowId;
}
routeCall: () => activeWindowManager.activeClientId
})));
const instantiationService = new InstantiationService(services);