make sure current File is set before activating

pull/5370/head
yann300 3 years ago committed by davidzagi93@gmail.com
parent fa44607bfb
commit 0579810235
  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) return super.compileFile(event)
} }
onActivation () { async onActivation () {
super.onActivation() this.currentFile = await this.call('fileManager', 'file')
super.onActivation()
this.call('filePanel', 'registerContextMenuItem', { this.call('filePanel', 'registerContextMenuItem', {
id: 'solidity', id: 'solidity',
name: 'compileFile', name: 'compileFile',

Loading…
Cancel
Save