mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-04 15:25:47 +01:00
WindowEventChannel: Create it before registerting channel - Initial window events are bufferred
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user