sussudio
Version:
An unofficial VS Code Internal API
18 lines (17 loc) • 981 B
text/typescript
/*---------------------------------------------------------------------------------------------
* 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 "../../../base/common/lifecycle.mjs";
import { IChannel, IServerChannel } from "../../../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;
}