jaime-olivares / vscode-yuml

yUML extension for Visual Studio Code
MIT License
116 stars 26 forks source link

Suggestion for auto-generating .yuml files #45

Closed greg-murray-volusion closed 6 years ago

greg-murray-volusion commented 6 years ago

It would be cool to combine with this project:

https://github.com/remojansen/TsUML

That way we could generate the .yuml file from scanning the typescript files from the project.

The code already has a getDsl function, so just needs to be integrated.

It does have some different syntax than this project. Here's a sample string it generates.

[Weapon{bg:palegreen}][Weapon||tryHit();],[Named{bg:palegreen}][Named|name;|],[BaseWeapon{bg:skyblue}][BaseWeapon|damage;|],[Katana{bg:skyblue}][Katana|name;|tryHit();],,[BaseWeapon]^-[Katana],[Weapon]^-[Katana],[Named]^-[Katana],[Ninja{bg:skyblue}][Ninja|_weapon;|fight();],

The commas would need to be converted to new lines and it does some stuff with pipes and semi-colons that is not compatible.

jaime-olivares commented 6 years ago

Hi Greg, I have received this suggestion before. My answer is the same: I cannot specialize this extension for a single programming language. I suggest to create a different extension that creates the yuml files based on the specific programming language.

greg-murray-volusion commented 6 years ago

ok, thanks Jaime.