bpmn-io / vs-code-bpmn-io

View and edit BPMN diagrams in VSCode. Powered by bpmn.io tools.
https://marketplace.visualstudio.com/items?itemName=bpmn-io.vs-code-bpmn-io
MIT License
114 stars 38 forks source link

"Save as..." causes unexpected error: document already exists #176

Open huddeldaddel opened 2 days ago

huddeldaddel commented 2 days ago

Describe the Bug

Saving diagram in new location causes error message. The diagram file can not be loaded until Visual Studio Code is restarted.

Steps to Reproduce

  1. Open a ".bpmn" file in VSCode with BPMN.io Editor Plugin
  2. Use menu option "Save As" to save file in new location
  3. Now VS Code displays message: "The editor could not be opened due to an unexpected error: document alreasy exists"

Expected Behavior

Common behavior would be that VSCode would display the file (from new location).

Environment

barmac commented 2 days ago

I can reproduce this issue. Thanks for reporting.

barmac commented 2 days ago

We are happy to accept external contributions. Would you like to provide a fix?

huddeldaddel commented 2 days ago

I'll give it a try. I've never worked on VS Code plugins before - but it sounds like a nice challenge.