diff --git a/apps/remix-ide/src/app/tabs/compile-tab.js b/apps/remix-ide/src/app/tabs/compile-tab.js index 1051d24626..baecfc8e6e 100644 --- a/apps/remix-ide/src/app/tabs/compile-tab.js +++ b/apps/remix-ide/src/app/tabs/compile-tab.js @@ -114,7 +114,6 @@ class CompileTab extends CompilerApiMixin(ViewPlugin) { // implements ICompilerA } async onActivation () { - this.currentFile = await this.call('fileManager', 'file') super.onActivation() this.call('filePanel', 'registerContextMenuItem', { id: 'solidity', @@ -125,6 +124,7 @@ class CompileTab extends CompilerApiMixin(ViewPlugin) { // implements ICompilerA path: [], pattern: [] }) + this.currentFile = await this.call('fileManager', 'file') } getCompilerParameters () {