diff --git a/apps/remix-ide/src/app/tabs/compile-tab.js b/apps/remix-ide/src/app/tabs/compile-tab.js index baecfc8e6e..f419542f89 100644 --- a/apps/remix-ide/src/app/tabs/compile-tab.js +++ b/apps/remix-ide/src/app/tabs/compile-tab.js @@ -124,7 +124,11 @@ class CompileTab extends CompilerApiMixin(ViewPlugin) { // implements ICompilerA path: [], pattern: [] }) - this.currentFile = await this.call('fileManager', 'file') + try { + this.currentFile = await this.call('fileManager', 'file') + } catch (e) { + throw new Error(e) + } } getCompilerParameters () { diff --git a/apps/remix-ide/src/app/tabs/test-tab.js b/apps/remix-ide/src/app/tabs/test-tab.js index 7246411903..0ad7aac4ee 100644 --- a/apps/remix-ide/src/app/tabs/test-tab.js +++ b/apps/remix-ide/src/app/tabs/test-tab.js @@ -74,10 +74,10 @@ module.exports = class TestTab extends ViewPlugin { } } - onActivation () { - const isSolidityActive = this.call('manager', 'isActive', 'solidity') + async onActivation () { + const isSolidityActive = await this.call('manager', 'isActive', 'solidity') if (!isSolidityActive) { - this.call('manager', 'activatePlugin', 'solidity') + await this.call('manager', 'activatePlugin', 'solidity') } } @@ -625,7 +625,7 @@ module.exports = class TestTab extends ViewPlugin { return this.generateFileActionElement } - updateRunAction (currentFile) { + async updateRunAction (currentFile) { const el = yo`