excalidraw / excalidraw-vscode

Excalidraw for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=pomdtr.excalidraw-editor
MIT License
457 stars 55 forks source link

False file change detection in vscode for .excalidraw files #96

Closed ali80 closed 1 year ago

ali80 commented 1 year ago

Hello,

I'm encountering an issue where Visual Studio Code (VSCode) incorrectly detects changes in .excalidraw files upon opening them, even when no modifications have been made. Here are the details:

Operating System: macOS VSCode Version: 1.79.2 Excalidraw Extension Version: v3.5.1

Steps to Reproduce:

Open a .excalidraw file in VSCode. Do not make any changes to the file. Notice that VSCode prompts a notification indicating that the file has been modified.

Expected Behavior:

When opening an untouched .excalidraw file, VSCode should not display any false notifications indicating file modifications. or maybe excalidraw extension should not change the file on its own unnecessarily

peterk62 commented 1 year ago

Same problem

meeas commented 1 year ago

I also wish this behavior was changed.

I suspect it has more to do with the Excalidraw npm package than the vscode package, but this does cause headaches when using excalidraw in git repos.

meeas commented 1 year ago

This is a repeat of #94

pomdtr commented 1 year ago

as @meeas said, this is already tracked