Skip to content

Bug: changing git branches/current head commit does not refresh open drawing's content #189

@kjameer0

Description

@kjameer0

Summary

Demonstration of bug

When a user performs git actions like switching to a new branch or previous commit that changes an open drawing in VSCode, any currently open drawing needs to be closed and reopened to reflect changes.

Steps to reproduce

  1. mkdir test
  2. code test
  3. touch test.excalidraw in vscode terminal
  4. draw anything in excalidraw file
  5. keep the excalidraw file open
  6. git add .
  7. git commit -m 'change'
  8. Make another change to the drawing and commit
  9. git checkout HEAD~1

At this point your old version of the drawing will not appear when you change to the previous commit.

I would like to work on this issue if possible or necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions