-
Notifications
You must be signed in to change notification settings - Fork 252
Ignore disabled diagnostics #1148
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
I am hesitating because I wonder if we could instead filter them when pulling the diagnostics to begin with, rather than calling a function to check each one later. Have you looked into that? |
I agree it doesn't seem great to check the namespace on every diagnostic. iirc, what we can do is filter by namespace to the I can rewrite this patch later today! |
WIP - I changed the shape of the table returned from |
ok, the most recent force-pushed branch is good to review. Let me know what you think. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks great. Let's just go ahead and remove the legacy lua vim
global filter though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
Is this a breaking change or a regression? After this commit I keep getting
for neovim 0.8.x. Note that the API
|
apologies, it is a breaking change - I'll add a nil check before calling that function |
If you disable a diagnostic with
vim.diagnostic.disable
, don't count towards the diagnostic count.