make sure current File is set before activating

pull/1582/head
yann300 3 years ago
parent d133d75379
commit 83b4946ab2
  1. 5
      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',

Loading…
Cancel
Save