Commit a9016b7c authored by yann300's avatar yann300 Committed by davidzagi93@gmail.com

make sure current File is set before activating

parent ade6fdf5
......@@ -113,7 +113,8 @@ class CompileTab extends CompilerApiMixin(ViewPlugin) { // implements ICompilerA
return super.compileFile(event)
}
onActivation () {
async onActivation () {
this.currentFile = await this.call('fileManager', 'file')
super.onActivation()
this.call('filePanel', 'registerContextMenuItem', {
id: 'solidity',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment