Update a model from inside a command handler #1029
Answered
by
msujew
luiz290788
asked this question in
Q&A
-
Is there any way to update a document from inside of a command handler? Do I need to trigger another command? |
Beta Was this translation helpful? Give feedback.
Answered by
msujew
Apr 18, 2023
Replies: 1 comment 6 replies
-
Hey @luiz290788, what exactly are you trying to accomplish? In what ways are you looking to update the document? Do you want to trigger a code action programmatically, so that the editor value is actually changed? Or is it enough to just update the document internally in Langium? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think so. Langium's document representation is completely internalized and isolated from "the real world". There's no way to just modify the document and have the changes reflected anywhere else, since they're decoupled.