MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / onIOPubMessage

Function onIOPubMessage

src/notebooks/debugger/kernelDebugAdapterBase.ts:151–163  ·  view source on GitHub ↗
(_: unknown, msg: KernelMessage.IIOPubMessage)

Source from the content-addressed store, hash-verified

149 }
150
151 async onIOPubMessage(_: unknown, msg: KernelMessage.IIOPubMessage) {
152 logger.ci(`Debug IO Pub message: ${JSON.stringify(msg)}`);
153 if (isDebugEventMsg(msg)) {
154 this.trace('event', JSON.stringify(msg));
155 for (const d of this.delegates ?? []) {
156 if (await d?.willSendEvent?.(msg.content)) {
157 return;
158 }
159 }
160
161 this.sendMessage.fire(msg.content);
162 }
163 }
164
165 /**
166 * Handle a message from the client to the debug adapter.

Callers

nothing calls this directly

Calls 5

isDebugEventMsgFunction · 0.90
ciMethod · 0.65
traceMethod · 0.65
willSendEventMethod · 0.65
fireMethod · 0.45

Tested by

no test coverage detected