Fix length in change event

This commit is contained in:
Erik De Bonte
2022-10-12 21:59:04 -07:00
parent 4f32f4069d
commit 74c0ed7459

View File

@@ -391,7 +391,7 @@ export class ExtHostNotebookDocument {
const cells = this._cells.splice(index, length);
this._cells.splice(newIdx, 0, ...cells);
const changes = [
new RawContentChangeEvent(index, 1, cells.map(c => c.apiCell), []),
new RawContentChangeEvent(index, length, cells.map(c => c.apiCell), []),
new RawContentChangeEvent(newIdx, 0, [], cells)
];
for (const change of changes) {