TreeView: MaxCallStackError - Nesting (#236493)

Part of #233056
pull/236500/head
Alex Ross 2024-12-18 17:41:28 +01:00 committed by GitHub
parent 929ce7c1fa
commit 148a1ca4bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ import { DomEmitter } from '../../event.js';
import { IMouseWheelEvent } from '../../mouseEvent.js';
import { EventType as TouchEventType, Gesture, GestureEvent } from '../../touch.js';
import { SmoothScrollableElement } from '../scrollbar/scrollableElement.js';
import { distinct, equals } from '../../../common/arrays.js';
import { distinct, equals, splice } from '../../../common/arrays.js';
import { Delayer, disposableTimeout } from '../../../common/async.js';
import { memoize } from '../../../common/decorators.js';
import { Emitter, Event, IValueWithChangeEvent } from '../../../common/event.js';
@ -643,7 +643,7 @@ export class ListView<T> implements IListView<T> {
this.items = inserted;
} else {
this.rangeMap.splice(start, deleteCount, inserted);
deleted = this.items.splice(start, deleteCount, ...inserted);
deleted = splice(this.items, start, deleteCount, inserted);
}
const delta = elements.length - deleteCount;