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

Files marked as dirty when opening

Open OldStarchy opened this issue 1 year ago • 4 comments

Sometimes when I open a *.excalidraw file it immediately gets marked as dirty, If I hit save (without making any change) to clear the mark. The actual changes that get saved vary but I've seen the order of the properties change, and a number of property values change; version, versionNonce, updated, but also height and baseline.

If I then close all editor windows, and then try to close vscode I get "Do you want to save the changes you made to file.excalidraw" popup.

OldStarchy avatar Mar 07 '23 23:03 OldStarchy

Yes, please fix this as it super anoying when using excalidraw file in a git repo. If one has many files in VScode opening a file it changes immedately but you can not figure out which one has real changes in it.

I'm using *.excalidraw.svg as container for the metadata

BTW: excalidraw is awesome!

MrPeacockNLB avatar Apr 26 '23 12:04 MrPeacockNLB

I love working with excalidraw, and more on vscode, but this is extremely annoying and makes it difficult to keep files synced when trying to work with files that were just opened but not changed clean in the source control repo, introducing artifact changes and causing conflicts.

ciosoriog avatar Jun 21 '23 12:06 ciosoriog