@@ -19,7 +19,7 @@ import { MinimapTokensColorTracker } from 'vs/editor/common/viewModel/minimapTok
1919import * as viewEvents from 'vs/editor/common/view/viewEvents' ;
2020import { ViewLayout } from 'vs/editor/common/viewLayout/viewLayout' ;
2121import { IViewModelLinesCollection , IdentityLinesCollection , SplitLinesCollection , ILineBreaksComputerFactory } from 'vs/editor/common/viewModel/splitLinesCollection' ;
22- import { ICoordinatesConverter , IOverviewRulerDecorations , IViewModel , ViewLineData , ViewLineRenderingData , ViewModelDecoration } from 'vs/editor/common/viewModel/viewModel' ;
22+ import { ICoordinatesConverter , IOverviewRulerDecorations , IViewModel , MinimapLinesRenderingData , ViewLineData , ViewLineRenderingData , ViewModelDecoration } from 'vs/editor/common/viewModel/viewModel' ;
2323import { ViewModelDecorations } from 'vs/editor/common/viewModel/viewModelDecorations' ;
2424import { RunOnceScheduler } from 'vs/base/common/async' ;
2525import * as platform from 'vs/base/common/platform' ;
@@ -587,8 +587,12 @@ export class ViewModel extends viewEvents.ViewEventEmitter implements IViewModel
587587 return this . lines . getViewLineData ( lineNumber ) ;
588588 }
589589
590- public getMinimapLinesRenderingData ( startLineNumber : number , endLineNumber : number , needed : boolean [ ] ) : ( ViewLineData | null ) [ ] {
591- return this . lines . getViewLinesData ( startLineNumber , endLineNumber , needed ) ;
590+ public getMinimapLinesRenderingData ( startLineNumber : number , endLineNumber : number , needed : boolean [ ] ) : MinimapLinesRenderingData {
591+ let result = this . lines . getViewLinesData ( startLineNumber , endLineNumber , needed ) ;
592+ return new MinimapLinesRenderingData (
593+ this . getTabSize ( ) ,
594+ result
595+ ) ;
592596 }
593597
594598 public getAllOverviewRulerDecorations ( theme : EditorTheme ) : IOverviewRulerDecorations {
0 commit comments