From 15d3e54ae3ac0e0e9256cdebfd41d9e38e6cb7eb Mon Sep 17 00:00:00 2001 From: Edwin Aronsson <75266237+4teapo@users.noreply.github.com> Date: Sun, 16 Jun 2024 09:39:04 +0200 Subject: [PATCH] Remove textDocument/diagnostic capability (#13102) Zed currently does not support pull diagnostics, yet still has the capability for it (`textDocument/diagnostic`) (added in https://github.com/zed-industries/zed/commit/14993e087669c7103df2239a2628ee0d3ce38596). 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 --- crates/lsp/src/lsp.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/crates/lsp/src/lsp.rs b/crates/lsp/src/lsp.rs index 256b13a128..ce3b5d566b 100644 --- a/crates/lsp/src/lsp.rs +++ b/crates/lsp/src/lsp.rs @@ -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!({