@@ -199,7 +199,7 @@ export default class CanvasDrawer extends Mixin {
199199
200200 // NOTE: this method is the hot function of Minimap. Do not refactor. The code is inlined delibarately.
201201
202- // redrawRangesOnLayer inlined (this.redrawRangesOnLayer(this.backLayer, intactRanges, firstRow, lastRow, this.drawBackDecorationsForLines)
202+ // redrawRangesOnLayer
203203
204204 this . backLayer . clearCanvas ( )
205205
@@ -215,7 +215,7 @@ export default class CanvasDrawer extends Mixin {
215215 ( intact . end - intact . start ) * lineHeight
216216 )
217217 }
218- // drawLinesForRanges inlined
218+ // drawLinesForRanges
219219 let currentRow = firstRow
220220 for ( let i = 0 , len = intactRanges . length ; i < len ; i ++ ) {
221221 const range = intactRanges [ i ]
@@ -251,7 +251,7 @@ export default class CanvasDrawer extends Mixin {
251251
252252 // NOTE: this method is the hot function of Minimap. Do not refactor. The code is inlined delibarately.
253253
254- // redrawRangesOnLayer inlined (this.frontLayer(this.frontLayer, intactRanges, firstRow, lastRow, this.drawFrontDecorationsForLines)
254+ // redrawRangesOnLayer
255255
256256 this . frontLayer . clearCanvas ( )
257257
@@ -267,7 +267,7 @@ export default class CanvasDrawer extends Mixin {
267267 ( intact . end - intact . start ) * lineHeight
268268 )
269269 }
270- // drawLinesForRanges inlined
270+ // drawLinesForRanges
271271 let currentRow = firstRow
272272 for ( let i = 0 , len = intactRanges . length ; i < len ; i ++ ) {
273273 const range = intactRanges [ i ]
@@ -573,7 +573,7 @@ function updateTokensLayer (tokensLayer, firstRow, lastRow, offscreenFirstRow, o
573573
574574 const intactRanges = computeIntactRanges ( firstRow , lastRow , pendingChanges , offscreenFirstRow , offscreenLastRow )
575575
576- // redrawRangesOnLayer inlined (this.redrawRangesOnLayer(this.tokensLayer, intactRanges, firstRow, lastRow, drawLines))
576+ // redrawRangesOnLayer
577577 const context = tokensLayer . context
578578
579579 tokensLayer . clearCanvas ( )
@@ -590,7 +590,7 @@ function updateTokensLayer (tokensLayer, firstRow, lastRow, offscreenFirstRow, o
590590 ( intact . end - intact . start ) * lineHeight
591591 )
592592 }
593- // drawLinesForRanges inlined
593+ // drawLinesForRanges
594594 let currentRow = firstRow
595595 for ( let i = 0 , len = intactRanges . length ; i < len ; i ++ ) {
596596 const range = intactRanges [ i ]
@@ -685,7 +685,7 @@ function drawLines (firstRow, lastRow, offsetRow, lineHeight, charHeight, charWi
685685 let lastLine , x
686686 let y = ( offsetRow * lineHeight ) - lineHeight
687687
688- // eachTokenForScreenRows inlined
688+ // eachTokenForScreenRows
689689 lastRow = Math . min ( lastRow , editorScreenLineCount )
690690
691691 for ( let line = firstRow ; line < lastRow ; line ++ ) {
@@ -697,7 +697,6 @@ function drawLines (firstRow, lastRow, offsetRow, lineHeight, charHeight, charWi
697697 const tokenText = token . text . replace ( invisibleRegExp , ' ' )
698698 const tokenScopes = token . scopeDescriptor || token . scopes
699699
700- // callback inlined
701700 if ( lastLine !== line ) {
702701 x = 0
703702 y += lineHeight
0 commit comments