AleksandarDev / vscode-sequence-diagrams

Generates UML sequence diagrams from simple text
https://marketplace.visualstudio.com/items?itemName=AleksandarDev.vscode-sequence-diagrams
47 stars 16 forks source link

Only .seqdiag files supported #8

Closed michaelkrone closed 6 years ago

michaelkrone commented 6 years ago

Since it is an important feature of sequece diagrams to be created with simple text files and can be read and opened as those, this extension should not care about file extensions - or should at least not only support .seqdiag extensions.

Personally I never saw a .seqdiag file. Some sequence diagram tools use .diag as extension, I would prefer .txt which would enable every user to open the diagram in every environment. Maybe you can explain the restriction to .seqdiag file extensions.

AleksandarDev commented 6 years ago

If we set .txt as Sequence Diagram language association, Visual Studio Code would open any .txt file as sequence diagram by default which is not what we want.

Solutions:

AleksandarDev commented 6 years ago

image

Note that the Sequence Diagram is selected as current language (lower right). Any file extension will open no problem (test.abc in example).

michaelkrone commented 6 years ago

Thank you @AleksandarDev. I had the false assumption only .seqdiag files can be viewed as diagrams. Selecting the language is a sufficient solution. Thank you for this useful extension.

MarcoMedrano commented 4 years ago

This tool is great!!! Wonder if there is no another way to automatically select "Sequence Diagram" as language just when opened by the command Show Sequence Diagram Preview. without associating the file extension.

Also would be nice and really useful to support unsaved files, at that point there is no file or extension name. The use case would be to just start diagraming to understand something (without the need of saving it) or just to share it by pasting the code into https://www.websequencediagrams.com