From ef4a9f0ac23f6d4a0e60bf7b299be8995ce686da Mon Sep 17 00:00:00 2001 From: Florian Diebold Date: Tue, 13 Dec 2022 16:39:00 +0100 Subject: [PATCH] Fix wrong config patching logic for addCallParenthesis --- crates/rust-analyzer/src/config/patch_old_style.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rust-analyzer/src/config/patch_old_style.rs b/crates/rust-analyzer/src/config/patch_old_style.rs index 472e2e0eeea..3b174a71934 100644 --- a/crates/rust-analyzer/src/config/patch_old_style.rs +++ b/crates/rust-analyzer/src/config/patch_old_style.rs @@ -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, };