File tree Expand file tree Collapse file tree
src/vs/base/browser/ui/list Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -282,11 +282,6 @@ export class ListView<T> implements ISpliceable<T>, IDisposable {
282282 private insertItemInDOM ( index : number , beforeElement : HTMLElement | null ) : void {
283283 const item = this . items [ index ] ;
284284
285- if ( ! item ) {
286- console . log ( this . items ) ;
287- throw new Error ( `Got index ${ index } and there are ${ this . items . length } items. File issue to joao!` ) ;
288- }
289-
290285 if ( ! item . row ) {
291286 item . row = this . cache . alloc ( item . templateId ) ;
292287 }
@@ -316,12 +311,6 @@ export class ListView<T> implements ISpliceable<T>, IDisposable {
316311
317312 private removeItemFromDOM ( index : number ) : void {
318313 const item = this . items [ index ] ;
319-
320- if ( ! item ) {
321- console . log ( this . items ) ;
322- throw new Error ( `Got index ${ index } and there are ${ this . items . length } items. File issue to joao!` ) ;
323- }
324-
325314 const renderer = this . renderers . get ( item . templateId ) ;
326315
327316 if ( renderer . disposeElement ) {
You can’t perform that action at this time.
0 commit comments