This commit is contained in:
Johannes Rieken
2020-09-15 10:22:12 +02:00
parent 46d1038fcf
commit 79e1ebbb7f
2 changed files with 6 additions and 1 deletions

View File

@@ -65,6 +65,9 @@ class NotebookEditorCellEditBuilder implements vscode.NotebookEditorEdit {
replaceCells(from: number, to: number, cells: vscode.NotebookCellData[]): void {
this._throwIfFinalized();
if (from === to && cells.length === 0) {
return;
}
this._collectedEdits.push({
editType: CellEditType.Replace,
index: from,