Be more pedantic when checking codeAction/resolve support

This commit is contained in:
Aleksey Kladov 2020-11-10 20:38:10 +01:00
parent 7d2eb000b0
commit 0caa491893

View file

@ -385,11 +385,14 @@ impl Config {
}
if let Some(code_action) = &doc_caps.code_action {
if let Some(resolve_support) = &code_action.resolve_support {
match (code_action.data_support, &code_action.resolve_support) {
(Some(true), Some(resolve_support)) => {
if resolve_support.properties.iter().any(|it| it == "edit") {
self.client_caps.code_action_resolve = true;
}
}
_ => (),
}
}
}