diff --git a/crates/languages/src/c.rs b/crates/languages/src/c.rs index 88be737e2b2b9d859981800806d7a752c39613e7..0f1c1c7e1b999828090f9ff0f498c744743bdeee 100644 --- a/crates/languages/src/c.rs +++ b/crates/languages/src/c.rs @@ -273,15 +273,16 @@ impl super::LspAdapter for CLspAdapter { &self, mut original: InitializeParams, ) -> Result { - // enable clangd's dot-to-arrow feature. let experimental = json!({ "textDocument": { "completion" : { + // enable clangd's dot-to-arrow feature. "editsNearCursor": true }, - "inactiveRegionsCapabilities": { - "inactiveRegions": true, - } + // TODO: inactiveRegions support needs an implementation in clangd_ext.rs + // "inactiveRegionsCapabilities": { + // "inactiveRegions": true, + // } } }); if let Some(ref mut original_experimental) = original.capabilities.experimental { diff --git a/crates/project/src/lsp_store/clangd_ext.rs b/crates/project/src/lsp_store/clangd_ext.rs index c8ce07e8b6a62aa653f7ec3455f573dbb15bb467..390eb735bcdb1439a232aea3d05fa4f75ed1b59e 100644 --- a/crates/project/src/lsp_store/clangd_ext.rs +++ b/crates/project/src/lsp_store/clangd_ext.rs @@ -35,6 +35,10 @@ pub fn register_notifications( } let server_id = language_server.server_id(); + // TODO: inactiveRegions support needs do add diagnostics, not replace them as `this.update_diagnostics` call below does + if true { + return; + } language_server .on_notification::({ let adapter = adapter.clone();