Skip to content

Commit 1e698ef

Browse files
authored
Merge branch 'master' into yann300-patch-31
2 parents 5629a5d + 7c1dd0b commit 1e698ef

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

apps/remix-ide/src/app/tabs/compile-tab.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,14 @@ class CompileTab extends ViewPlugin {
6565
eventHandlers: {},
6666
loading: false
6767
}
68-
this.compileTabLogic = new CompileTabLogic(this.queryParams, this.fileManager, this.editor, this.config, this.fileProvider, this.contentImport)
68+
this.compileTabLogic = new CompileTabLogic(
69+
this.queryParams,
70+
this.fileManager,
71+
this.editor,
72+
this.config,
73+
this.fileProvider,
74+
this.contentImport
75+
)
6976
}
7077

7178
onActivationInternal () {
@@ -126,9 +133,14 @@ class CompileTab extends ViewPlugin {
126133
this.emit('statusChanged', { key: 'loading', title: 'compiling...', type: 'info' })
127134
}
128135

136+
this.data.eventHandlers.onRemoveAnnotations = () => {
137+
this.call('editor', 'clearAnnotations')
138+
}
139+
129140
this.on('filePanel', 'setWorkspace', () => this.resetResults())
130141

131142
this.compileTabLogic.event.on('startingCompilation', this.data.eventHandlers.onStartingCompilation)
143+
this.compileTabLogic.event.on('removeAnnotations', this.data.eventHandlers.onRemoveAnnotations)
132144

133145
this.data.eventHandlers.onCurrentFileChanged = (name) => {
134146
this.compilerContainer.currentFile = name

apps/remix-ide/src/app/tabs/compileTab/compileTab.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class CompileTab extends Plugin {
118118
}
119119
}
120120
this.fileManager.saveCurrentFile()
121-
this.call('editor', 'clearAnnotations')
121+
this.event.emit('removeAnnotations')
122122
var currentFile = this.config.get('currentFile')
123123
return this.compileFile(currentFile)
124124
} catch (err) {

0 commit comments

Comments
 (0)