do not trigger outputs change when there is no real change.

This commit is contained in:
rebornix
2020-08-28 13:55:52 -07:00
parent d3a5dd9d4b
commit f56b64cffb

View File

@@ -462,6 +462,10 @@ export class ExtHostNotebookDocument extends Disposable {
return [diff.start, diff.deleteCount, outputs];
});
if (!outputDtos.length) {
return;
}
await this._proxy.$spliceNotebookCellOutputs(this._viewType, this.uri, cell.handle, outputDtos);
this._emitter.emitCellOutputsChange({
document: this.notebookDocument,