Skip to content

is it langium validation can show validation error by default #1427

Answered by msujew
zrwsmd asked this question in Q&A
Discussion options

You must be logged in to vote

Langium sends diagnostics to the client using the LSP push diagnostics mechanism. By default, it will convert all parser and lexer errors into error diagnostics. In addition, you can use the semantic validation API, to perform custom validation based on your AST.

The vscode-languageclient package takes care of using the vscode API to display diagnostics received from the language server connection. No need to implement this yourself.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by zrwsmd
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