diff --git a/apps/remix-ide/src/app/files/fileManager.ts b/apps/remix-ide/src/app/files/fileManager.ts index 982365459d..f7d4f5602f 100644 --- a/apps/remix-ide/src/app/files/fileManager.ts +++ b/apps/remix-ide/src/app/files/fileManager.ts @@ -631,12 +631,12 @@ 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 - } + // 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 diff --git a/apps/remix-ide/src/app/plugins/solidity-umlgen.tsx b/apps/remix-ide/src/app/plugins/solidity-umlgen.tsx index c1e37639a5..b46f5782e3 100644 --- a/apps/remix-ide/src/app/plugins/solidity-umlgen.tsx +++ b/apps/remix-ide/src/app/plugins/solidity-umlgen.tsx @@ -50,8 +50,8 @@ 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) + // 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) {