Quick fix tool #459
-
Is it possible to access the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
the However, you can see it in action in the langium grammar language, where we use it to fix common mistakes. Currently, code actions work based on text changes, but we are thinking about adding additional utilities to provide code actions based on semantic changes (i.e. changes to the model which get translated into text changes). |
Beta Was this translation helpful? Give feedback.
Hi @MathiasSJacobsen,
the
Quick fix...
button is populated by theCodeAction
provided by the language server. We offer a basicCodeActionProvider
interface, but no default implementation since that is highly language specific.However, you can see it in action in the langium grammar language, where we use it to fix common mistakes. Currently, code actions work based on text changes, but we are thinking about adding additional utilities to provide code actions based on semantic changes (i.e. changes to the model which get translated into text changes).