From 6708c8a5c80bd7f49295741932a2fdd7fe5160b5 Mon Sep 17 00:00:00 2001 From: Asher Date: Tue, 19 Feb 2019 17:33:22 -0600 Subject: [PATCH] Prevent shared process from loading client code I think this happened when I added the trash code, since that's what includes the client. --- packages/vscode/src/fill/stdioElectron.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/vscode/src/fill/stdioElectron.ts b/packages/vscode/src/fill/stdioElectron.ts index a31b7b30..f9944539 100644 --- a/packages/vscode/src/fill/stdioElectron.ts +++ b/packages/vscode/src/fill/stdioElectron.ts @@ -1,7 +1,12 @@ import { StdioIpcHandler } from "@coder/server/src/ipc"; import { IpcRenderer } from "electron"; -export * from "@coder/ide/src/fill/electron"; +// TODO: Commenting out for now since the electron fill includes the client code +// and tries to connect to the web socket. The fill also likely wouldn't work +// since it assumes it is running on the client. Could we proxy all methods to +// the client? It might not matter since we intercept everything before sending +// to the shared process. +// export * from "@coder/ide/src/fill/electron"; class StdioIpcRenderer extends StdioIpcHandler implements IpcRenderer { // tslint:disable-next-line no-any