Skip to content

fix(#2990): Do not check if buffer is buflisted in diagnostics.update() #2998

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged

Conversation

des-b
Copy link
Collaborator

@des-b des-b commented Nov 10, 2024

This ensures that LSP diagnostics of files which are not manually opened by users are rendered by nvim-tree diagnostic indicators.

However when users attach an LSP to nvim-tree this will bring back flashing as attempted to fix in #2980. Fixing this should probably done by checking data passed via diagnostic events (DiagnosticChanged and CocDiagnosticChanged).

This ensures that LSP diagnostics of files which are not manually opened
by users are rendered by nvim-tree diagnostic indicators.

However when users attach an LSP to nvim-tree this will bring back
flashing as attempted to fix in #2980. Fixing this should probably done
by checking data passed via diagnostic events (DiagnosticChanged and
CocDiagnosticChanged).

Signed-off-by: des-b <66919647+des-b@users.noreply.github.com>
Copy link
Member

@alex-courtis alex-courtis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works nicely, thanks for the fix @des-b

The whole view business will be resolved / rewritten during Multiple Instances

If you have any spare time your assistance would be gratefully appreciated!

@alex-courtis alex-courtis merged commit 28eac28 into master Nov 10, 2024
5 checks passed
@alex-courtis alex-courtis deleted the 2990-remove-lsp-diagnostics-regression-introduced-by-2980 branch November 10, 2024 21:57
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants