mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-29 13:03:42 +01:00
add check no-op changes, https://github.com/microsoft/vscode/issues/105283
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user