Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/remix-ide/src/app/components/side-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
3 changes: 2 additions & 1 deletion apps/remix-ide/src/app/editor/SourceHighlighters.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down