mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 23:06:49 +01:00
💄
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user