@@ -68,7 +68,7 @@ export class NotebookCellList extends WorkbenchList<CellViewModel> implements ID
6868 private readonly _focusNextPreviousDelegate : IFocusNextPreviousDelegate ;
6969
7070 private _cellListGutter : WorkbenchList < CellViewModel > ;
71- private _rangeMap = new RangeMapWithWhitespace ( ) ;
71+ private _rangeMap : RangeMapWithWhitespace ;
7272
7373 constructor (
7474 private listUser : string ,
@@ -78,6 +78,7 @@ export class NotebookCellList extends WorkbenchList<CellViewModel> implements ID
7878 renderers : IListRenderer < CellViewModel , BaseCellRenderTemplate > [ ] ,
7979 contextKeyService : IContextKeyService ,
8080 options : INotebookCellListOptions ,
81+ rangeMap : RangeMapWithWhitespace ,
8182 @IListService listService : IListService ,
8283 @IThemeService themeService : IThemeService ,
8384 @IConfigurationService configurationService : IConfigurationService ,
@@ -87,9 +88,10 @@ export class NotebookCellList extends WorkbenchList<CellViewModel> implements ID
8788 super ( listUser , container , delegate , renderers , {
8889 ...options ,
8990 rangeMapProvider : ( ) => {
90- return this . _rangeMap ;
91+ return rangeMap ;
9192 }
9293 } , contextKeyService , listService , themeService , configurationService , keybindingService ) ;
94+ this . _rangeMap = rangeMap ;
9395 NOTEBOOK_CELL_LIST_FOCUSED . bindTo ( this . contextKeyService ) . set ( true ) ;
9496 this . _focusNextPreviousDelegate = options . focusNextPreviousDelegate ;
9597 this . _previousFocusedElements = this . getFocusedElements ( ) ;
0 commit comments