damonsk / vscode-wardley-maps

A Wardley Maps for Visual Studio Code extension supporting rendering and editing maps-as-code.
https://onlinewardleymaps.com/
MIT License
66 stars 12 forks source link

Display an existing map shows empty canvas #26

Closed demeringo closed 10 months ago

demeringo commented 10 months ago

Bug description:

Opening an existing map file display an empty canvas and may lead to erasing file content.

Possibly linked to #24 ?

How to reproduce:

  1. Linux
  2. Close any existing Map view tab
  3. Open an existing owm file in vs code (without having the map view previously opened, this is important to reproduce).
  4. Command "Wardley map: Display map" => an empty canvas is displayed
  5. Add a component in GUI mode (clicking inside the display view): the existing content of the file is replaced by this new component (only)
  6. Subsequent edit work fine.

Workaround:

The bug does not manifest if the display map view was already active/open for a different file (before loading the owm file).

Or if I click inside the text file while presented with the empty canvas (this refreshes the view with file content and subsequent edits wok fine).

Other:

A sincere thank you for the great work so far on this much appreciated extension 🙏

damonsk commented 10 months ago

Thanks @demeringo - fix will be live shortly.