Skip to content

Commit

Permalink
Auto merge of rust-lang#13766 - rust-lang:fix-config-patch, r=Veykril
Browse files Browse the repository at this point in the history
Fix wrong config patching logic for addCallParenthesis
  • Loading branch information
bors committed Dec 14, 2022
2 parents 4596847 + ef4a9f0 commit 5bd9373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rust-analyzer/src/config/patch_old_style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ pub(super) fn patch_json_for_outdated_configs(json: &mut Value) {
copy.pointer("/completion/addCallParenthesis"),
) {
(Some(Value::Bool(true)), Some(Value::Bool(true))) => json!("fill_arguments"),
(Some(Value::Bool(true)), _) => json!("add_parentheses"),
(_, Some(Value::Bool(true))) => json!("add_parentheses"),
(Some(Value::Bool(false)), Some(Value::Bool(false))) => json!("none"),
(_, _) => return,
};
Expand Down

0 comments on commit 5bd9373

Please sign in to comment.