Commit 408b8807 authored by filip mertens's avatar filip mertens

fix highlights of tab

parent 9c72cea3
......@@ -113,6 +113,7 @@ export class SidePanel extends AbstractPanel {
async showContent (name) {
super.showContent(name)
this.renderHeader()
this.emit('focusChanged', name)
}
/** The header of the side panel */
......
......@@ -30,8 +30,9 @@ class SourceHighlighters {
// eslint-disable-next-line
try {
if (!this.highlighters[from]) return
const sourceHighlight = new SourceHighlighter()
let sourceHighlight
for (const index in this.highlighters[from]) {
sourceHighlight = new SourceHighlighter()
sourceHighlight.currentSourceLocationFromfileName(
this.highlighters[from][index].position,
this.highlighters[from][index].source,
......
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