How to delete the text behind each validation error msg? #1713
Answered
by
msujew
durianwaffle
asked this question in
Q&A
-
I find that there is a text, which is grammar name at the end of each validation error msg. |
Beta Was this translation helpful? Give feedback.
Answered by
msujew
Oct 14, 2024
Replies: 1 comment 1 reply
-
Hey @durianwaffle, you can override the langium/packages/langium/src/validation/document-validator.ts Lines 197 to 213 in 2e39701 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
durianwaffle
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @durianwaffle,
you can override the
DocumentValidator#getSource
method to return an empty string to remove/change the text:langium/packages/langium/src/validation/document-validator.ts
Lines 197 to 213 in 2e39701