Skip to content

Commit 74c0ed7

Browse files
committed
Fix length in change event
1 parent 4f32f40 commit 74c0ed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/api/common/extHostNotebookDocument.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ export class ExtHostNotebookDocument {
391391
const cells = this._cells.splice(index, length);
392392
this._cells.splice(newIdx, 0, ...cells);
393393
const changes = [
394-
new RawContentChangeEvent(index, 1, cells.map(c => c.apiCell), []),
394+
new RawContentChangeEvent(index, length, cells.map(c => c.apiCell), []),
395395
new RawContentChangeEvent(newIdx, 0, [], cells)
396396
];
397397
for (const change of changes) {

0 commit comments

Comments
 (0)