UNPKG

@sussudio/platform

Version:

Internal APIs for VS Code's service injection the base services.

19 lines (17 loc) 969 B
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { Disposable } from '@sussudio/base/common/lifecycle.mjs'; import { IChannel, IServerChannel } from '@sussudio/base/parts/ipc/common/ipc.mjs'; import { IMainProcessService } from './services.mjs'; /** * An implementation of `IMainProcessService` that leverages Electron's IPC. */ export declare class ElectronIPCMainProcessService extends Disposable implements IMainProcessService { readonly _serviceBrand: undefined; private mainProcessConnection; constructor(windowId: number); getChannel(channelName: string): IChannel; registerChannel(channelName: string, channel: IServerChannel<string>): void; }