remove only highlight

pull/5370/head
LianaHus 5 years ago
parent 20e8d2ca7b
commit 0efa1a65a9
  1. 2
      src/app/tabs/debugger-tab.js
  2. 5
      src/app/tabs/debugger/debuggerUI.js

@ -71,7 +71,7 @@ class DebuggerTab extends ViewPlugin {
}
deactivate () {
this.debuggerUI.unLoad()
this.debuggerUI.deletHighlights()
super.deactivate()
}

@ -207,7 +207,6 @@ class DebuggerUI {
}
async unLoad () {
await this.debuggerModule.call('editor', 'discardHighlight')
yo.update(this.debuggerHeadPanelsView, yo`<div></div>`)
yo.update(this.debuggerPanelsView, yo`<div></div>`)
yo.update(this.stepManagerView, yo`<div></div>`)
@ -220,6 +219,10 @@ class DebuggerUI {
this.event.trigger('traceUnloaded')
}
async deletHighlights () {
await this.debuggerModule.call('editor', 'discardHighlight')
}
renderDebugger () {
yo.update(this.debuggerHeadPanelsView, this.vmDebugger.renderHead())
yo.update(this.debuggerPanelsView, this.vmDebugger.render())

Loading…
Cancel
Save