-
Notifications
You must be signed in to change notification settings - Fork 167
feat: ability to ignore diagnostics by code #272
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
Conversation
IMO, I think that this logic should be implemented on the client side. In the LSP spec, a diagnostic can have a code property: export interface Diagnostic {
/**
* The diagnostic's code, which might appear in the user interface.
*/
code?: integer | string;
} Why? It makes more sense to filtering diagnostics by the code on the client, |
Valid point. I guess I will drop it unless someone else some good arguments for having it. |
I'll go with that after all. Asking all clients to support that takes quite some effort and convincing and it's not even clear if client authors would want to implement that. And fixing will close a bunch of issues. :) |
Yes, it is true that it is not specified in the spec. Clients already implemented the ability to filter out diagnostics by severity to only show errors and warnings, and hide info, and hints. I do not have anything again this PR, |
I did not make such argument. :)
Well, I guess only this one #142 :P But still, it's low effort, hopefully no maintenance feature so I don't mind. |
Quite a lot people are suffering from microsoft/vscode#47299 I think
|
n00b question @rchl: where exactly can I add this setting? I've tried my projects |
@jacobchrismarsh coc-tsserver doesn't use this package. |
Ah, that makes sense. Alright then! Thanks, for the info @predragnikolic |
Fixes #166