hediet / vscode-drawio

This unofficial extension integrates Draw.io (also known as diagrams.net) into VS Code.
https://marketplace.visualstudio.com/items?itemName=hediet.vscode-drawio
GNU General Public License v3.0
9.02k stars 406 forks source link

"Redo" does not work #328

Open treyworl opened 1 year ago

treyworl commented 1 year ago

In the edit tab of VS Code, "Undo" works to undo the last edit to a diagram; however, "redo" does not work. This is true for both using the dropdown under "Edit" and clicking the buttons as well as using the keyboard shortcuts (on Mac, CMD+Z and CMD+Y).

This functionality is the case on both an Amazon Linux system and Mac. Linux info: image

Mac info: MacBook Pro, 13-inch, M1, 2020 macOS Monterey 12.5

I am primarily using files with drawio.svg extension

hediet commented 1 year ago

I cannot reproduce...

recording

treyworl commented 1 year ago

Hmm ok, thanks for checking. I can actually use the Redo arrow that is in the Drawio top bar (as you show), just not the VS Code's Edit > Redo (or accompanying shortcut). Does not seems to be the extension, I suppose. Thanks again. Wonder if others have this issue

hediet commented 1 year ago

You sure you use the .svg extension and not .png?

treyworl commented 1 year ago

Yes, I always use .drawio.svg extensions names. VS Code's Undo/Redo work as expected for text files, notebooks, etc. With a `drawio.svg` file, VS Code's "Redo" never works and "Undo" will sometimes do something different than the buttons in the Drawio extension's top bar. The extension's "Undo" and "Redo" work as expected and give the desired results. The primary issue with this is that I can't use my keyboard shortcuts for Undo/Redo while in a Drawio file (they are mapped to VS Code's Undo/Redo). But, at least the extension's buttons work.