-
Hello, I have created a language with langium, and am using it from another LSP server. But there seems to be no "DiagnosticsProvider", and I was wondering how Langium does this behind the scenes? So, to summarise, is there a way for langium to give me the Diagnostics, so that i can forward/provide it myself through my own LSP server? //Eivind |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @ejfasting, All instances of Note that Langium uses a few performance optimization internally so that documents don't need to be recomputed on every invocation of an LSP service when running inside of the "normal" language server use case. The |
Beta Was this translation helpful? Give feedback.
Thank you for the feedback @msujew !
I actually dug into your sourcecode to get a little more insight, and ended up with using the DocumentValidator.validateDocument(langiumDocument), which gives me the Diagnostics[] (as you also say).
I'll look at the documentation to fine-tune it.
Thanks again!
//Eivind