Handling Duplicate Markers in GLSP and Langium Integration #15036
Unanswered
kapishsingla
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hey @kapishsingla, I'm not quite sure to be honest. On an architectural level, both Langium and GLSP simply send diagnostics to Theia, which are correctly displayed. Therefore, it might make sense to prevent one of those (either Langium or GLSP) from sending their diagnostics to the language client. I'm not quite sure how easy it is to prevent GLSP from sending its diagnostics, but it should be doable in Langium by creating a custom |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Team,
I am currently working with Langium and GLSP, where I am implementing validation on the Langium model, which should be displayed on the GLSP node. In the ProblemManager, both GLSP and Langium are registering markers, resulting in each error being shown twice in both the navigator and the problem view.
One potential approach is to filter diagnostics based on the owner, but this doesn’t seem like the most optimal solution. What would be a better approach to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions