mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-19 22:59:48 +01:00
windowEventService: ipc
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user