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

Add the ability to persist the library as a document #26

Closed pomdtr closed 2 years ago

pomdtr commented 2 years ago

Fix #16

TODO before release: backward compatibility with old library persisting logic

dwelle commented 2 years ago

One thing: the library doesn't reflect the latest changes if other excalidraw files were open at the time:

  1. open a.excalidraw and b.excalidraw
  2. change library in a.excalidraw
  3. switch to b.excalidraw
  4. open the library → it doesn't reflect latest state
pomdtr commented 2 years ago

I'm working on it :)

This is related to #17

pomdtr commented 2 years ago

@dwelle this should be fixed now !

An eventEmitter to synchronise the change between all of the editors.