Unnamed repository; edit this file 'description' to name the repository.
Auto merge of #12504 - rust-lang:Veykril-patch-1, r=Veykril
fix: Fix config patching for callable snippets Closes https://github.com/rust-lang/rust-analyzer/issues/12498
bors 2022-06-11
parent 5b746ec · parent a7a1a83 · commit 37b01f9
-rw-r--r--crates/rust-analyzer/src/config/patch_old_style.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/config/patch_old_style.rs b/crates/rust-analyzer/src/config/patch_old_style.rs
index e21298e22c..472e2e0eee 100644
--- a/crates/rust-analyzer/src/config/patch_old_style.rs
+++ b/crates/rust-analyzer/src/config/patch_old_style.rs
@@ -117,7 +117,7 @@ pub(super) fn patch_json_for_outdated_configs(json: &mut Value) {
) {
(Some(Value::Bool(true)), Some(Value::Bool(true))) => json!("fill_arguments"),
(Some(Value::Bool(true)), _) => json!("add_parentheses"),
- (Some(Value::Bool(false)), Some(Value::Bool(false))) => json!("add_parentheses"),
+ (Some(Value::Bool(false)), Some(Value::Bool(false))) => json!("none"),
(_, _) => return,
};
merge(json, json!({ "completion": { "callable": {"snippets": res }} }));