Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opening an excalidraw diagram changes something inside and shows in git pending changes #94

Open
bjesuiter opened this issue Jun 23, 2023 · 6 comments

Comments

@bjesuiter
Copy link

When I open an excalidraw diagram with the extension, It seems to change something inside the file, since VSCode shows me the 'unsaved changes' indicator and git shows me the file as changed.

This is incredibly annoying, since I don't know anymore whether I did something to a file or if I simply took a look at it.

Can you at least provide a setting which says: "Avoid all write processes until something really changed in the file" ?

@DavidRojoM
Copy link

Happens to me also, seems to be updating version and versionNonce fields for each file open

@bjesuiter
Copy link
Author

Can someone, who's in charge, comment on whether this could be changed?
I can see that we only want to change the version and versionNonce Fields after an actual edit.
Or at least, make it configureable in vscode to stop this behavior.

@pomdtr
Copy link
Collaborator

pomdtr commented Jul 1, 2023

This is not a simple fix. The extension export your drawing to a JSON file each time a change is reported, and sometimes a change is reported while the drawing did not changes.

The extension does not have control over the version fields. If it was that easy, it would already be fixed.

@bjesuiter
Copy link
Author

@pomdtr Ah ok, I see. Is there an upstream repo somewhere where we might be able to get this fixed directly in excalidraw core?

@karanshah229
Copy link

Facing the same issue 😞
Is there a hack / fix anyone has found ?

@NoelTejeda
Copy link

Hola compañeros!!
He visto que tienen o tuvieron el mismo error que actualmente tengo, y les quiero preguntar si lograron resolver el error.
he tratado de llamar al archivo nuevo como test.excalidraw y de todas las maneras que sugiere la extensión pero no reconoce el archivo.

Bueno un saludo a todos y si alguien logra resolver avisen!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants