mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 01:17:27 +00:00
Be more pedantic when checking codeAction/resolve support
This commit is contained in:
parent
7d2eb000b0
commit
0caa491893
1 changed files with 6 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue