|
|
@ -67,8 +67,6 @@ export class SolidityUmlGen extends ViewPlugin implements ISolidityUmlGen { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
onActivation(): void { |
|
|
|
onActivation(): void { |
|
|
|
// if (this.currentFile.length < 1)
|
|
|
|
|
|
|
|
console.log('activated!!') |
|
|
|
|
|
|
|
this.on('solidity', 'compilationFinished', async (file, source, languageVersion, data, input, version) => { |
|
|
|
this.on('solidity', 'compilationFinished', async (file, source, languageVersion, data, input, version) => { |
|
|
|
const currentTheme: ThemeQualityType = await this.call('theme', 'currentTheme') |
|
|
|
const currentTheme: ThemeQualityType = await this.call('theme', 'currentTheme') |
|
|
|
this.currentlySelectedTheme = currentTheme.quality |
|
|
|
this.currentlySelectedTheme = currentTheme.quality |
|
|
@ -82,8 +80,7 @@ export class SolidityUmlGen extends ViewPlugin implements ISolidityUmlGen { |
|
|
|
const umlClasses = convertAST2UmlClasses(ast, this.currentFile) |
|
|
|
const umlClasses = convertAST2UmlClasses(ast, this.currentFile) |
|
|
|
const umlDot = convertUmlClasses2Dot(umlClasses) |
|
|
|
const umlDot = convertUmlClasses2Dot(umlClasses) |
|
|
|
const payload = vizRenderStringSync(umlDot) |
|
|
|
const payload = vizRenderStringSync(umlDot) |
|
|
|
const mangled = await this.mangleSvgPayload(payload) |
|
|
|
this.updatedSvg = payload |
|
|
|
this.updatedSvg = mangled |
|
|
|
|
|
|
|
this.renderComponent() |
|
|
|
this.renderComponent() |
|
|
|
await this.call('tabs', 'focus', 'solidityumlgen') |
|
|
|
await this.call('tabs', 'focus', 'solidityumlgen') |
|
|
|
} catch (error) { |
|
|
|
} catch (error) { |
|
|
@ -116,7 +113,7 @@ export class SolidityUmlGen extends ViewPlugin implements ISolidityUmlGen { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
generateCustomAction = async (action: customAction) => { |
|
|
|
generateCustomAction = async (action: customAction) => { |
|
|
|
console.log('calling activation') |
|
|
|
this.updatedSvg = this.updatedSvg.startsWith('<?xml') ? '' : this.updatedSvg |
|
|
|
this.currentFile = action.path[0] |
|
|
|
this.currentFile = action.path[0] |
|
|
|
await this.generateUml(action.path[0]) |
|
|
|
await this.generateUml(action.path[0]) |
|
|
|
} |
|
|
|
} |
|
|
|