From f56b64cffbbd86ed346e2c7384d67a3b9d0fdc09 Mon Sep 17 00:00:00 2001 From: rebornix Date: Fri, 28 Aug 2020 13:55:52 -0700 Subject: [PATCH] do not trigger outputs change when there is no real change. --- src/vs/workbench/api/common/extHostNotebook.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/vs/workbench/api/common/extHostNotebook.ts b/src/vs/workbench/api/common/extHostNotebook.ts index 44b746613a1..16962e50bd4 100644 --- a/src/vs/workbench/api/common/extHostNotebook.ts +++ b/src/vs/workbench/api/common/extHostNotebook.ts @@ -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,