-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
C-featureCategory: feature requestCategory: feature request
Description
rust-analyzer seems to only publishDiagnostics at startup and when the code changes. It seems other LSP servers like clangd additionally publishDiagnostics after didOpen. This saves LSP clients to store diagnostics for files that are not open.
What is rust-analyzer opinion about this? Should rust-analyzer support such (possibly optional) feature?
For context, eglot (the builtin LSP client implementation of Emacs) relies on LSP servers to publishDiagnostics after didOpen. I've opened a bug on their side too, ideally such that rust-analyzer can meet eglot somewhere: joaotavora/eglot#1531 (contains reproduction steps).
Metadata
Metadata
Assignees
Labels
C-featureCategory: feature requestCategory: feature request