-
Notifications
You must be signed in to change notification settings - Fork 408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to properly set excludedMarkerTypes / what's the correct value #3085
Comments
Couldn't you ignore the markers/diagnostics on the client side ? the An example of how it's used : Lines 159 to 165 in 27a1a1e
Where a marker's type is a subtype of another type if the marker's extension point definition contains that type : https://github.com/eclipse-jdt/eclipse.jdt.core/blob/c1875a13ec830b248cf5a16b9d8ca16c53d811a6/org.eclipse.jdt.core/plugin.xml#L115-L123 |
Thank you! I want to reduce the noise sent to my client I'm still not sure how can I deduct the right marker type |
Currently, I don't see a nice way for the client to disable diagnostics completely. In fact if you look at the code I referenced above we even prevent adding the Part of the problem is outlined in #2422 . We use In more recent versions of the LSP, there was support added for clients to more easily configure when diagnostics are requested, so once that issue is resolved, you should have better support. Let's consider this as raising the priority on looking at #2422. We could also modify |
@Bnaya wouldn't running jdt.ls in syntax server mode be enough for you (only syntax errors are reported, but no classpath computation) ? |
I have tried, but it doesn't not give me the features I need Some background: So I'm disabling gradle and maven, and my project is full with errors, that i don't really care about. Thank you for the detailed answers! |
I'm doing some code analysis using the lang server
Some of the projects are intentionally not complete, without the deps and all.
And I'm getting tons of this kind of diagnostics that i would like to ignore.
I've trying sending the following
excludedMarkerTypes
but it's not workingexcludedMarkerTypes: ['org.eclipse.lsp4j.Diagnostic', 'org.eclipse.lsp4j.diagnostic', 'org.eclipse.lsp4e.diagnostic'],
I'm probably doing something wrong.
How can i determining the correct marker type to ignore diagnostics?
The text was updated successfully, but these errors were encountered: