Skip to content

Commit 37b01f9

Browse files
committed
Auto merge of rust-lang#12504 - rust-lang:Veykril-patch-1, r=Veykril
fix: Fix config patching for callable snippets Closes rust-lang/rust-analyzer#12498
2 parents 5b746ec + a7a1a83 commit 37b01f9

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
@@ -117,7 +117,7 @@ pub(super) fn patch_json_for_outdated_configs(json: &mut Value) {
117117
) {
118118
(Some(Value::Bool(true)), Some(Value::Bool(true))) => json!("fill_arguments"),
119119
(Some(Value::Bool(true)), _) => json!("add_parentheses"),
120-
(Some(Value::Bool(false)), Some(Value::Bool(false))) => json!("add_parentheses"),
120+
(Some(Value::Bool(false)), Some(Value::Bool(false))) => json!("none"),
121121
(_, _) => return,
122122
};
123123
merge(json, json!({ "completion": { "callable": {"snippets": res }} }));

0 commit comments

Comments
 (0)