Skip to content

Commit

Permalink
Merge pull request #650 from Arcanemagus/fix-onDidTokenize
Browse files Browse the repository at this point in the history
Use proper method to subscribe to onDidTokenize
  • Loading branch information
mehcode authored Feb 23, 2018
2 parents 6152811 + f8ba51d commit 36afb0e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/minimap.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,7 @@ class Minimap {
resulting in extra lines appearing at the end of the minimap.
Forcing a whole repaint to fix that bug is suboptimal but works.
*/
const tokenizedBuffer = this.textEditor.tokenizedBuffer
? this.textEditor.tokenizedBuffer
: this.textEditor.displayBuffer.tokenizedBuffer

subs.add(tokenizedBuffer.onDidTokenize(() => {
subs.add(this.textEditor.onDidTokenize(() => {
this.emitter.emit('did-change-config')
}))
}
Expand Down

0 comments on commit 36afb0e

Please sign in to comment.