Commit 08d259ee authored by yann300's avatar yann300

fix initiallizing currentFile

parent ea117a7a
...@@ -114,7 +114,6 @@ class CompileTab extends CompilerApiMixin(ViewPlugin) { // implements ICompilerA ...@@ -114,7 +114,6 @@ class CompileTab extends CompilerApiMixin(ViewPlugin) { // implements ICompilerA
} }
async onActivation () { async onActivation () {
this.currentFile = await this.call('fileManager', 'file')
super.onActivation() super.onActivation()
this.call('filePanel', 'registerContextMenuItem', { this.call('filePanel', 'registerContextMenuItem', {
id: 'solidity', id: 'solidity',
...@@ -125,6 +124,7 @@ class CompileTab extends CompilerApiMixin(ViewPlugin) { // implements ICompilerA ...@@ -125,6 +124,7 @@ class CompileTab extends CompilerApiMixin(ViewPlugin) { // implements ICompilerA
path: [], path: [],
pattern: [] pattern: []
}) })
this.currentFile = await this.call('fileManager', 'file')
} }
getCompilerParameters () { getCompilerParameters () {
......
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