Skip to content

Commit

Permalink
Remove textDocument/diagnostic capability (#13102)
Browse files Browse the repository at this point in the history
Zed currently does not support pull diagnostics, yet still has the
capability for it (`textDocument/diagnostic`) (added in
14993e0).
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
  • Loading branch information
4teapo committed Jun 16, 2024
1 parent 064bdab commit 15d3e54
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions crates/lsp/src/lsp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!({
Expand Down

0 comments on commit 15d3e54

Please sign in to comment.