|
|
@ -31,6 +31,9 @@ export class CompilerMetadata extends Plugin { |
|
|
|
|
|
|
|
|
|
|
|
onActivation () { |
|
|
|
onActivation () { |
|
|
|
const self = this |
|
|
|
const self = this |
|
|
|
|
|
|
|
this.on('filePanel', 'setWorkspace', () => { |
|
|
|
|
|
|
|
this.buildInfoNames = {} |
|
|
|
|
|
|
|
}) |
|
|
|
this.on('solidity', 'compilationFinished', async (file, source, languageVersion, data, input, version) => { |
|
|
|
this.on('solidity', 'compilationFinished', async (file, source, languageVersion, data, input, version) => { |
|
|
|
if (!await this.call('settings', 'get', 'settings/generate-contract-metadata')) return |
|
|
|
if (!await this.call('settings', 'get', 'settings/generate-contract-metadata')) return |
|
|
|
const compiler = new CompilerAbstract(languageVersion, data, source, input) |
|
|
|
const compiler = new CompilerAbstract(languageVersion, data, source, input) |
|
|
|