提交 88b1879a 编写于 作者: R rebornix

fix #101681. avoid out of date splice2 triggered by hidden range update.

上级 bbb1bb52
......@@ -356,6 +356,10 @@ export class NotebookCellList extends WorkbenchList<CellViewModel> implements ID
splice2(start: number, deleteCount: number, elements: CellViewModel[] = []): void {
// we need to convert start and delete count based on hidden ranges
if (start < 0 || start > this.view.length) {
return;
}
super.splice(start, deleteCount, elements);
const selectionsLeft = [];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册