Handle LSP codeActions capability set to false

This commit is contained in:
Max Brunsfeld 2023-06-06 17:12:24 -07:00
parent 0d90c6d02e
commit fccbac4887

View file

@ -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(