aboutsummaryrefslogtreecommitdiff
path: root/helix-lsp
diff options
context:
space:
mode:
authorMichael Davis2023-10-02 03:32:27 +0000
committerGitHub2023-10-02 03:32:27 +0000
commit6abaf3d24f47b9537766e9a8ffe1d76a4329d1f2 (patch)
treea7cab54dd6838886f30a3fd18447d25ff5c54ed7 /helix-lsp
parent0e13db28327d69e97907d27bc5364629637a6c8e (diff)
LSP: Fix codeAction/resolve server capability check (#8421)
Previously we accidentally checked the server's _completion_ resolve capability rather than the code action resolve capability.
Diffstat (limited to 'helix-lsp')
-rw-r--r--helix-lsp/src/client.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/helix-lsp/src/client.rs b/helix-lsp/src/client.rs
index ed9a2f83..341702c3 100644
--- a/helix-lsp/src/client.rs
+++ b/helix-lsp/src/client.rs
@@ -971,12 +971,12 @@ impl Client {
) -> Option<impl Future<Output = Result<Value>>> {
let capabilities = self.capabilities.get().unwrap();
- // Return early if the server does not support resolving code action.
- match capabilities.completion_provider {
- Some(lsp::CompletionOptions {
+ // Return early if the server does not support resolving code actions.
+ match capabilities.code_action_provider {
+ Some(lsp::CodeActionProviderCapability::Options(lsp::CodeActionOptions {
resolve_provider: Some(true),
..
- }) => (),
+ })) => (),
_ => return None,
}