diff --git a/apps/remix-ide/src/app/tabs/compile-tab.js b/apps/remix-ide/src/app/tabs/compile-tab.js index 17f10a504b..f33df648b9 100644 --- a/apps/remix-ide/src/app/tabs/compile-tab.js +++ b/apps/remix-ide/src/app/tabs/compile-tab.js @@ -113,8 +113,9 @@ class CompileTab extends CompilerApiMixin(ViewPlugin) { // implements ICompilerA return super.compileFile(event) } - onActivation () { - super.onActivation() + async onActivation () { + this.currentFile = await this.call('fileManager', 'file') + super.onActivation() this.call('filePanel', 'registerContextMenuItem', { id: 'solidity', name: 'compileFile',