Skip to content

How to enable undo/redo operations on the Tree Editor #156

Discussion options

You must be logged in to vote

Hi @agonzalezgaliana!
Great to hear that you use the tree editor! 🌳

Basically, undo/redo is available via the common Theia undo/redo commands from the menu Edit > Undo / Redo, but the tree-editor widget does not handle those commands yet.
For example, the (GLSP) Diagram widget overrides the global Theia undo/redo commands and dispatches a dedicated Undo/RedoAction which is handled by the server.
This could also be picked up in the same manner for the tree-editor, and instead of dispatching an Action, directly call the modelServerClient with undo/redo.
See for example in sprotty-theia:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@agonzalezgaliana
Comment options

Answer selected by agonzalezgaliana
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants