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,