Skip to content

Commit 173454b

Browse files
committed
fix: inline variables used once in updateCanvas
1 parent 5e94c91 commit 173454b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/mixins/canvas-drawer.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,10 @@ export default class CanvasDrawer extends Mixin {
127127
const charHeight = this.minimap.getCharHeight() * devicePixelRatio
128128
const charWidth = this.minimap.getCharWidth() * devicePixelRatio
129129
const { width: canvasWidth, height: canvasHeight } = this.tokensLayer.getSize()
130-
const context = this.tokensLayer.context
131130
const editor = this.minimap.getTextEditor()
132131
const editorElement = this.minimap.getTextEditorElement()
133-
const displayCodeHighlights = this.displayCodeHighlights
134-
const ignoreWhitespacesInTokens = this.ignoreWhitespacesInTokens
135-
const maxTokensInOneLine = this.maxTokensInOneLine
136132

137-
this.updateTokensLayer(firstRow, lastRow, lineHeight, charHeight, charWidth, canvasWidth, context, editor, editorElement, displayCodeHighlights, ignoreWhitespacesInTokens, maxTokensInOneLine)
133+
this.updateTokensLayer(firstRow, lastRow, lineHeight, charHeight, charWidth, canvasWidth, this.tokensLayer.context, editor, editorElement, this.displayCodeHighlights, this.ignoreWhitespacesInTokens, this.maxTokensInOneLine)
138134

139135
const decorations = this.minimap.decorationsByTypeThenRows(firstRow, lastRow)
140136

0 commit comments

Comments
 (0)