2019-01-19 04:46:40 +07:00
|
|
|
import { StdioIpcHandler } from "@coder/server/src/ipc";
|
|
|
|
import { IpcRenderer } from "electron";
|
|
|
|
|
|
|
|
export * from "@coder/ide/src/fill/electron";
|
|
|
|
|
|
|
|
class StdioIpcRenderer extends StdioIpcHandler implements IpcRenderer {
|
2019-02-07 00:53:23 +07:00
|
|
|
// tslint:disable-next-line no-any
|
|
|
|
public sendTo(_windowId: number, _channel: string, ..._args: any[]): void {
|
2019-01-19 04:46:40 +07:00
|
|
|
throw new Error("Method not implemented.");
|
|
|
|
}
|
|
|
|
|
2019-02-07 00:53:23 +07:00
|
|
|
// tslint:disable-next-line no-any
|
|
|
|
public sendToHost(_channel: string, ..._args: any[]): void {
|
2019-01-19 04:46:40 +07:00
|
|
|
throw new Error("Method not implemented.");
|
|
|
|
}
|
|
|
|
|
|
|
|
public eventNames(): string[] {
|
|
|
|
return super.eventNames() as string[];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export const ipcRenderer = new StdioIpcRenderer();
|