Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit a7a1a83

Browse files
authored
fix: Fix config patching for callable snippets
1 parent ba32991 commit a7a1a83

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

Lines changed: 1 addition & 1 deletion
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)