Skip to content

Commit f64ae4c

Browse files
committed
feat: add ipcLogger and timeoutDelay for IPCServer
1 parent 61a18c2 commit f64ae4c

File tree

1 file changed

+3
-3
lines changed
  • src/vs/base/parts/ipc/common

1 file changed

+3
-3
lines changed

src/vs/base/parts/ipc/common/ipc.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -806,16 +806,16 @@ export class IPCServer<TContext = string> implements IChannelServer<TContext>, I
806806
return result;
807807
}
808808

809-
constructor(onDidClientConnect: Event<ClientConnectionEvent>) {
809+
constructor(onDidClientConnect: Event<ClientConnectionEvent>, ipcLogger: IIPCLogger | null = null, timeoutDelay: number = 1000) {
810810
this.disposables.add(onDidClientConnect(({ protocol, onDidClientDisconnect }) => {
811811
const onFirstMessage = Event.once(protocol.onMessage);
812812

813813
this.disposables.add(onFirstMessage(msg => {
814814
const reader = new BufferReader(msg);
815815
const ctx = deserialize(reader) as TContext;
816816

817-
const channelServer = new ChannelServer(protocol, ctx);
818-
const channelClient = new ChannelClient(protocol);
817+
const channelServer = new ChannelServer(protocol, ctx, ipcLogger, timeoutDelay);
818+
const channelClient = new ChannelClient(protocol, ipcLogger);
819819

820820
this.channels.forEach((channel, name) => channelServer.registerChannel(name, channel));
821821

0 commit comments

Comments
 (0)