Skip to content

Commit 5bd9373

Browse files
committed
Auto merge of #13766 - rust-lang:fix-config-patch, r=Veykril
Fix wrong config patching logic for addCallParenthesis
2 parents 4596847 + ef4a9f0 commit 5bd9373

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/rust-analyzer/src/config/patch_old_style.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ pub(super) fn patch_json_for_outdated_configs(json: &mut Value) {
116116
copy.pointer("/completion/addCallParenthesis"),
117117
) {
118118
(Some(Value::Bool(true)), Some(Value::Bool(true))) => json!("fill_arguments"),
119-
(Some(Value::Bool(true)), _) => json!("add_parentheses"),
119+
(_, Some(Value::Bool(true))) => json!("add_parentheses"),
120120
(Some(Value::Bool(false)), Some(Value::Bool(false))) => json!("none"),
121121
(_, _) => return,
122122
};

0 commit comments

Comments
 (0)