added onDeactivation

highlightsCleaner
LianaHus 4 years ago
parent 2358699337
commit 08cddf6a9c
  1. 4
      apps/remix-ide/src/app/editor/editor.js

@ -200,6 +200,10 @@ class Editor extends Plugin {
this.on('sidePanel', 'focusChanged', (name) => this.sourceHighlighters.hideHighlightsExcept(name))
}
onDeactivation () {
this.off('sidePanel', 'focusChanged')
}
highlight (position, filePath, hexColor) {
const { from } = this.currentRequest
this.sourceHighlighters.highlight(position, filePath, hexColor, from)

Loading…
Cancel
Save