Commit 83b4946a authored by yann300's avatar yann300

make sure current File is set before activating

parent d133d753
...@@ -113,8 +113,9 @@ class CompileTab extends CompilerApiMixin(ViewPlugin) { // implements ICompilerA ...@@ -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',
......
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