Commit 8da1d9c6 authored by LianaHus's avatar LianaHus

remove only highlight

parent da6548b4
...@@ -71,7 +71,7 @@ class DebuggerTab extends ViewPlugin { ...@@ -71,7 +71,7 @@ class DebuggerTab extends ViewPlugin {
} }
deactivate () { deactivate () {
this.debuggerUI.unLoad() this.debuggerUI.deletHighlights()
super.deactivate() super.deactivate()
} }
......
...@@ -207,7 +207,6 @@ class DebuggerUI { ...@@ -207,7 +207,6 @@ class DebuggerUI {
} }
async unLoad () { async unLoad () {
await this.debuggerModule.call('editor', 'discardHighlight')
yo.update(this.debuggerHeadPanelsView, yo`<div></div>`) yo.update(this.debuggerHeadPanelsView, yo`<div></div>`)
yo.update(this.debuggerPanelsView, yo`<div></div>`) yo.update(this.debuggerPanelsView, yo`<div></div>`)
yo.update(this.stepManagerView, yo`<div></div>`) yo.update(this.stepManagerView, yo`<div></div>`)
...@@ -220,6 +219,10 @@ class DebuggerUI { ...@@ -220,6 +219,10 @@ class DebuggerUI {
this.event.trigger('traceUnloaded') this.event.trigger('traceUnloaded')
} }
async deletHighlights () {
await this.debuggerModule.call('editor', 'discardHighlight')
}
renderDebugger () { renderDebugger () {
yo.update(this.debuggerHeadPanelsView, this.vmDebugger.renderHead()) yo.update(this.debuggerHeadPanelsView, this.vmDebugger.renderHead())
yo.update(this.debuggerPanelsView, this.vmDebugger.render()) yo.update(this.debuggerPanelsView, this.vmDebugger.render())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment