Auto merge of #13766 - rust-lang:fix-config-patch, r=Veykril

Fix wrong config patching logic for addCallParenthesis
This commit is contained in:
bors 2022-12-14 13:50:29 +00:00
commit 5bd9373c5b

View File

@ -116,7 +116,7 @@ macro_rules! patch {
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,
};