vscode-drawio icon indicating copy to clipboard operation
vscode-drawio copied to clipboard

Existing diagrams XML version is not unpacked initially

Open koying opened this issue 4 years ago • 4 comments

I understand draw.io saves its xml source as compressed XML.

2 questions actually:

  1. Is it by design that an existing drawing, created with draw.io, doesn't have its xml initially unpacked when viewed as text?
  2. Is it by design that the XML view has a drawio file type rather than XML, by default?

Thanks

koying avatar Feb 08 '21 18:02 koying

Hi there!

Which version of the extension do you use?

hediet avatar Feb 08 '21 19:02 hediet

Hi. Latest from vs store, v1.2.0

koying avatar Feb 08 '21 20:02 koying

Is it by design that an existing drawing, created with draw.io, doesn't have its xml initially unpacked when viewed as text?

There once was a bug that draw.io file created in VS Code with this extension had this behavior, but I thought I fixed it. All .drawio/.dio files created with this extension should be decompressed.

If you use the official draw.io website/desktop app, you can configure whether you want to compress or not.

Is it by design that the XML view has a drawio file type rather than XML, by default?

Which xml view do you mean? Draw.io are usually xml documents, saved as *.dio or *.drawio file, so that editors can recognize such files.

hediet avatar Feb 08 '21 20:02 hediet

Which xml view do you mean?

I mean this: https://github.com/hediet/vscode-drawio#editing-the-diagram-and-its-xml-side-by-side In the GIF, the xml view has the "XML" type image

By me, it is a "drawio" type, with no xml capabilities, ie plain text, by default

koying avatar Feb 09 '21 07:02 koying