diff --git a/apps/remix-ide/src/app/tabs/debugger-tab.js b/apps/remix-ide/src/app/tabs/debugger-tab.js index 71f1299fe8..a2ed6f1088 100644 --- a/apps/remix-ide/src/app/tabs/debugger-tab.js +++ b/apps/remix-ide/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/apps/remix-ide/src/app/tabs/debugger/debuggerUI.js b/apps/remix-ide/src/app/tabs/debugger/debuggerUI.js index 2bbf18aaff..9d8d5702bc 100644 --- a/apps/remix-ide/src/app/tabs/debugger/debuggerUI.js +++ b/apps/remix-ide/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())