Skip to content

Commit 388ce8e

Browse files
committed
be more reactive
1 parent cdbed64 commit 388ce8e

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

apps/remix-ide/src/app/plugins/parser/code-parser.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,16 +169,19 @@ export class CodeParser extends Plugin {
169169

170170
this.on('solidity', 'compilerQueryParamsUpdated', async (file) => {
171171
await this.call('editor', 'discardLineTexts')
172+
await this.call('editor', 'clearErrorMarkers', [this.currentFile])
172173
await this.handleChangeEvents()
173174
})
174175

175176
this.on('solidity', 'compilerAppParamsUpdated', async (file) => {
176177
await this.call('editor', 'discardLineTexts')
178+
await this.call('editor', 'clearErrorMarkers', [this.currentFile])
177179
await this.handleChangeEvents()
178180
})
179181

180182
this.on('solidity', 'configFileChanged', async (file) => {
181183
await this.call('editor', 'discardLineTexts')
184+
await this.call('editor', 'clearErrorMarkers', [this.currentFile])
182185
await this.handleChangeEvents()
183186
})
184187

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,15 +162,13 @@ export default class CompileTab extends CompilerApiMixin(ViewPlugin) { // implem
162162

163163
getCompilerQueryParameters() {
164164
const params = this.queryParams.get()
165-
console.log('getCompilerQueryParameters', params)
166165
params.evmVersion = params.evmVersion === 'null' || params.evmVersion === 'undefined' ? null : params.evmVersion
167166
params.optimize = (params.optimize === 'false' || params.optimize === null || params.optimize === undefined) ? false : params.optimize
168167
params.optimize = params.optimize === 'true' ? true : params.optimize
169168
return params
170169
}
171170

172171
setCompilerQueryParameters(params) {
173-
console.log('setCompilerQueryParameters', params)
174172
this.queryParams.update(params)
175173
try {
176174
this.emit('compilerQueryParamsUpdated')
@@ -184,7 +182,6 @@ export default class CompileTab extends CompilerApiMixin(ViewPlugin) { // implem
184182
}
185183

186184
async setAppParameter(name, value) {
187-
console.log('setAppParameter', name, value)
188185
await this.call('config', 'setAppParameter', name, value)
189186
try {
190187
this.emit('compilerAppParamsUpdated')

libs/remix-solidity/src/compiler/compiler.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ export class Compiler {
101101
*/
102102

103103
compile(files: Source, target: string): void {
104-
console.log('Compiling', this.state)
105104
this.state.target = target
106105
this.state.compilationStartTime = new Date().getTime()
107106
this.event.trigger('compilationStarted', [])

libs/remix-ui/solidity-compiler/src/lib/logic/compileTabLogic.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ export class CompileTabLogic {
6767

6868
async setUseFileConfiguration (useFileConfiguration: boolean) {
6969
this.useFileConfiguration = useFileConfiguration
70-
console.log('setUseFileConfiguration', useFileConfiguration)
7170
this.compiler.set('useFileConfiguration', useFileConfiguration)
7271
await this.setCompilerConfigContent()
7372
}

0 commit comments

Comments
 (0)