mirror of
https://github.com/danog/code-server.git
synced 2024-11-26 20:34:56 +01:00
Prevent shared process from loading client code
I think this happened when I added the trash code, since that's what includes the client.
This commit is contained in:
parent
33c2d451c4
commit
6708c8a5c8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user