We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5c06e82 + 0caa491 commit 111cc34Copy full SHA for 111cc34
crates/rust-analyzer/src/config.rs
@@ -385,10 +385,13 @@ impl Config {
385
}
386
387
if let Some(code_action) = &doc_caps.code_action {
388
- if let Some(resolve_support) = &code_action.resolve_support {
389
- if resolve_support.properties.iter().any(|it| it == "edit") {
390
- self.client_caps.code_action_resolve = true;
+ match (code_action.data_support, &code_action.resolve_support) {
+ (Some(true), Some(resolve_support)) => {
+ if resolve_support.properties.iter().any(|it| it == "edit") {
391
+ self.client_caps.code_action_resolve = true;
392
+ }
393
394
+ _ => (),
395
396
397
0 commit comments