lsp: Add support for clangd's inactiveRegions extension (#26146)
Closes #13089 Here we use `experimental` to advertise our support for `inactiveRegions`. Note that clangd does not currently have a stable release that reads the `experimental` object (PR https://github.com/llvm/llvm-project/pull/116531), this can be tested with one of clangd's recent "unstable snapshots" in their [releases](https://github.com/clangd/clangd/releases). Release Notes: - Added support for clangd's `inactiveRegions` extension.  --------- Co-authored-by: Peter Tripp <peter@zed.dev> Co-authored-by: Kirill Bulatov <kirill@zed.dev>
This commit is contained in:
co-authored by
Peter Tripp
Kirill Bulatov
parent
af5af9d7c5
commit
829ecda370
@@ -278,6 +278,9 @@ impl super::LspAdapter for CLspAdapter {
|
||||
"textDocument": {
|
||||
"completion" : {
|
||||
"editsNearCursor": true
|
||||
},
|
||||
"inactiveRegionsCapabilities": {
|
||||
"inactiveRegions": true,
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user