Replies: 2 comments 1 reply
-
Hey @ydaveluy, you mean like a linter extension? In VS Code, you can expose an API of your extension if you return something in the However, since the Langium language server lives in a separate process from the extension, it's rather difficult to get the AST for the validation to run. So I'd say it's theoretically possible, but technically challenging to realize due to the process gap between the VS Code extension and the language server. |
Beta Was this translation helpful? Give feedback.
-
Hey @msujew, I was thinking about validation rules depending on the AST. From my understanding it seems very challenging: it would means sending the serialized AST from langium to the extension, processing validation rules on the de-serialized AST then serializing diagnostics to send then back to langium using a custom request. An other idea: On Langium server side provide a custom request such as On the extension side it would mean to retrieve the Langium VSCode extension and send the |
Beta Was this translation helpful? Give feedback.
-
Hi,
I would like to know how it is possible to enrich an existing Langium VSCode extension with new validation rules defined in an other VSCode extension ?
Beta Was this translation helpful? Give feedback.
All reactions