mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Fix wrong config patching logic for addCallParenthesis
This commit is contained in:
parent
4596847a88
commit
ef4a9f0ac2
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ pub(super) fn patch_json_for_outdated_configs(json: &mut Value) {
|
||||||
copy.pointer("/completion/addCallParenthesis"),
|
copy.pointer("/completion/addCallParenthesis"),
|
||||||
) {
|
) {
|
||||||
(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!("none"),
|
(Some(Value::Bool(false)), Some(Value::Bool(false))) => json!("none"),
|
||||||
(_, _) => return,
|
(_, _) => return,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue