Skip to content

Commit a924a45

Browse files
authored
Ignore stream messages part of comm_msg (#16334)
1 parent 9e1b96e commit a924a45

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/kernels/execution/cellExecutionMessageHandler.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -951,6 +951,12 @@ export class CellExecutionMessageHandler implements IDisposable {
951951
return;
952952
}
953953

954+
if (msg.parent_header.msg_id === 'comm_msg' && msg.header.msg_type === 'stream') {
955+
// Fix for https://github.com/microsoft/vscode-jupyter/issues/15996
956+
// We're not interested in stream messages that are part of comm messages.
957+
return;
958+
}
959+
954960
// eslint-disable-next-line complexity
955961
traceCellMessage(this.cell, `Update streamed output, new output '${msg.content.text.substring(0, 100)}'`);
956962
// Possible execution of cell has completed (the task would have been disposed).

0 commit comments

Comments
 (0)