mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-30 06:05:19 +00:00
Handle LSP codeActions capability set to false
This commit is contained in:
parent
0d90c6d02e
commit
fccbac4887
1 changed files with 5 additions and 1 deletions
|
@ -1499,7 +1499,11 @@ impl LspCommand for GetCodeActions {
|
|||
type ProtoRequest = proto::GetCodeActions;
|
||||
|
||||
fn check_capabilities(&self, capabilities: &ServerCapabilities) -> bool {
|
||||
capabilities.code_action_provider.is_some()
|
||||
match &capabilities.code_action_provider {
|
||||
None => false,
|
||||
Some(lsp::CodeActionProviderCapability::Simple(false)) => false,
|
||||
_ => true,
|
||||
}
|
||||
}
|
||||
|
||||
fn to_lsp(
|
||||
|
|
Loading…
Reference in a new issue