Files stop working when renamed from *.excalidraw to *.excalidraw.svg and vice versa
See original GitHub issueDescription
When an excalidraw file is renamed to another supported extension (e.g. from *.excalidraw
to *.excalidraw.svg
and vice versa) the file can not be opened by the excalidraw plugin anymore. It only shows a blank VSCode when opening the file.
Steps to reproduce
- Create a file with the supported extension (e.g.
test.excalidraw
) - Optionally add some graphs to the file
- Rename the file to
test.excalidraw.svg
- Close and open the renamed file
Expected behavior
Renaming the extension to another supported extension should not render the file unusable by VSCode.
Workaround
- Create a new file with the required extension
- Copy and paste the contents from the old file to the new file
Issue Analytics
- State:
- Created a year ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Excalidraw on Twitter: "You can now embed the scene into the ...
@excalidraw. You can now embed the scene into the file when exporting to PNG/SVG, and later import it back. via.
Read more >excalidraw-vscode from excalidraw - Coder Social
Files stop working when renamed from *.excalidraw to *.excalidraw.svg and vice ... vice versa) the file can not be opened by the excalidraw...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok I have a naive but working solution (basically I try to load the file as a json/png/svg sequentially).
I agree that it it feels really good to be able to change the filetype by renaming the file 😃
Thank you very much.