hediet / vscode-drawio

This unofficial extension integrates Draw.io (also known as diagrams.net) into VS Code.
https://marketplace.visualstudio.com/items?itemName=hediet.vscode-drawio
GNU General Public License v3.0
9.02k stars 406 forks source link

Data loss when updating VS Code - missing warning for unsaved changes #434

Open JSchoeck opened 4 days ago

JSchoeck commented 4 days ago

I lost a ton of work when VS Code was updated. There was no warning of unsaved changes (and I thought I did save the diagram in between), however, when VS Code reopened, the state of the file was that from 10 days ago.

One aspect of this issue is that the diagram document loses the ability to track that it was changed. Not sure how to reproduce it. When this happens, saving with Ctrl + s no longer works, but the user does not know about it! Only when looking at the last modified datetime, this becomes clear.

Possible solutions: