Skip to content

Commit f56b64c

Browse files
committed
do not trigger outputs change when there is no real change.
1 parent d3a5dd9 commit f56b64c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/vs/workbench/api/common/extHostNotebook.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,10 @@ export class ExtHostNotebookDocument extends Disposable {
462462
return [diff.start, diff.deleteCount, outputs];
463463
});
464464

465+
if (!outputDtos.length) {
466+
return;
467+
}
468+
465469
await this._proxy.$spliceNotebookCellOutputs(this._viewType, this.uri, cell.handle, outputDtos);
466470
this._emitter.emitCellOutputsChange({
467471
document: this.notebookDocument,

0 commit comments

Comments
 (0)