Skip to content
Discussion options

You must be logged in to vote

Hey @jmenzies12,

generally, language servers operate on a master-slave model. Meaning that any change is first supposed to go through the client before this change then triggers a server update. Therefore, any change originating from the server needs to be applied on the client side first.

However this results in a bit of a mismatch when it comes to undo, since the edit is not originating from the diagram client it cannot undo it directly.

I'm not too familiar with GLSP. However, the way I would attempt to on about this is to generate the change that the view is supposed to apply and send it via a custom lsp notification to the client. The client sends that directly to the webview, whic…

Replies: 1 comment 1 reply

Comment options

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

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