From 8135699cb19385967af15f2919132aec0d86b196 Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 13 Sep 2021 17:30:43 +0200 Subject: [PATCH] fix initiallizing currentFile --- apps/remix-ide/src/app/tabs/compile-tab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 () {