Skip to content

Commit 6708c8a

Browse files
committed
Prevent shared process from loading client code
I think this happened when I added the trash code, since that's what includes the client.
1 parent 33c2d45 commit 6708c8a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

packages/vscode/src/fill/stdioElectron.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
import { StdioIpcHandler } from "@coder/server/src/ipc";
22
import { IpcRenderer } from "electron";
33

4-
export * from "@coder/ide/src/fill/electron";
4+
// TODO: Commenting out for now since the electron fill includes the client code
5+
// and tries to connect to the web socket. The fill also likely wouldn't work
6+
// since it assumes it is running on the client. Could we proxy all methods to
7+
// the client? It might not matter since we intercept everything before sending
8+
// to the shared process.
9+
// export * from "@coder/ide/src/fill/electron";
510

611
class StdioIpcRenderer extends StdioIpcHandler implements IpcRenderer {
712
// tslint:disable-next-line no-any

0 commit comments

Comments
 (0)