mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-29 14:33:29 +00:00
fix: Fix config patching for callable snippets
This commit is contained in:
parent
ba329913fa
commit
a7a1a83463
1 changed files with 1 additions and 1 deletions
|
@ -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)), 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!("add_parentheses"),
|
(Some(Value::Bool(false)), Some(Value::Bool(false))) => json!("none"),
|
||||||
(_, _) => return,
|
(_, _) => return,
|
||||||
};
|
};
|
||||||
merge(json, json!({ "completion": { "callable": {"snippets": res }} }));
|
merge(json, json!({ "completion": { "callable": {"snippets": res }} }));
|
||||||
|
|
Loading…
Reference in a new issue