remove logic to write file during uml gen

pull/3321/head^2
Joseph Izang 2 years ago committed by Aniket
parent 913b7a97c9
commit 93b85150f0
  1. 7
      apps/remix-ide/src/app/files/fileManager.ts
  2. 2
      apps/remix-ide/src/app/plugins/solidity-umlgen.tsx

@ -631,12 +631,7 @@ class FileManager extends Plugin {
let content = ''
try {
content = await provider.get(file)
// if (file.split('.')[1].includes('svg')) {
// if (!await this.appManager.isActive('solidityumlgen')) await this.appManager.activatePlugin('solidityumlgen')
// provider.isReadOnly(file)
// this.call('solidityumlgen', 'showUmlDiagram', content)
// return
// }
} catch (error) {
console.log(error)
throw error

@ -51,8 +51,6 @@ export class SolidityUmlGen extends ViewPlugin implements ISolidityUmlGen {
}
const ast = result.length > 1 ? parser.parse(result) : parser.parse(source.sources[this.currentFile].content)
const payload = vizRenderStringSync(convertUmlClasses2Dot(convertAST2UmlClasses(ast, this.currentFile)))
// const fileName = `${this.currentFile.split('/')[0]}/resources/${this.currentFile.split('/')[1].split('.')[0]}.svg`
// await this.call('fileManager', 'writeFile', fileName, payload)
this.updatedSvg = payload
this.renderComponent()
} catch (error) {

Loading…
Cancel
Save