From 0efa1a65a950d034b9aa8fb236be966e35af1c6d Mon Sep 17 00:00:00 2001 From: LianaHus Date: Fri, 29 May 2020 14:46:41 +0200 Subject: [PATCH] remove only highlight --- src/app/tabs/debugger-tab.js | 2 +- src/app/tabs/debugger/debuggerUI.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app/tabs/debugger-tab.js b/src/app/tabs/debugger-tab.js index 71f1299fe8..a2ed6f1088 100644 --- a/src/app/tabs/debugger-tab.js +++ b/src/app/tabs/debugger-tab.js @@ -71,7 +71,7 @@ class DebuggerTab extends ViewPlugin { } deactivate () { - this.debuggerUI.unLoad() + this.debuggerUI.deletHighlights() super.deactivate() } diff --git a/src/app/tabs/debugger/debuggerUI.js b/src/app/tabs/debugger/debuggerUI.js index 2bbf18aaff..9d8d5702bc 100644 --- a/src/app/tabs/debugger/debuggerUI.js +++ b/src/app/tabs/debugger/debuggerUI.js @@ -207,7 +207,6 @@ class DebuggerUI { } async unLoad () { - await this.debuggerModule.call('editor', 'discardHighlight') yo.update(this.debuggerHeadPanelsView, yo`
`) yo.update(this.debuggerPanelsView, yo`
`) yo.update(this.stepManagerView, yo`
`) @@ -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())