Remove textDocument/diagnostic capability (#13102)

Zed currently does not support pull diagnostics, yet still has the
capability for it (`textDocument/diagnostic`) (added in
14993e0876).
Some language servers therefore assume Zed will use pull diagnostics,
which leads to there being no diagnostics at all. This PR removes this
capability, making it possible to get diagnostics with more language
servers.

Release Notes:

- N/A
This commit is contained in:
Edwin Aronsson 2024-06-16 09:39:04 +02:00 committed by GitHub
parent 064bdab459
commit 15d3e54ae3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -704,10 +704,6 @@ impl LanguageServer {
on_type_formatting: Some(DynamicRegistrationClientCapabilities {
dynamic_registration: None,
}),
diagnostic: Some(DiagnosticClientCapabilities {
related_document_support: Some(true),
dynamic_registration: None,
}),
..Default::default()
}),
experimental: Some(json!({