Skip to content

Conversation

@mazdabat
Copy link

This update ensures synchronization between the local Vim diagnostic list and the LSP.

The issue arose with the clangd LSP, where the local diagnostic list retained syntax errors reported by clangd even after they were resolved and clangd no longer reported them.

While it's unclear if this problem exists for other programming languages, this PR effectively addresses the issue for clangd when working with C/C++.

@iton0
Copy link
Contributor

iton0 commented Dec 24, 2024

The behavior is working as expected. Location list does not automatically update when errors are fixed; its like a static snapshot of the diagnostics of the file. Additionally, the open option for vim.diagnostic.setloclist is true by default.

@feoh
Copy link
Collaborator

feoh commented Dec 29, 2024

Hi. I'm with @iton0 here, but if you think we're in error, please make a case for why and re-open.

@feoh feoh closed this Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants