diff options
| author | bors <bors@rust-lang.org> | 2022-06-11 11:41:26 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-06-11 11:41:26 +0000 |
| commit | 37b01f9f392b74a1f268acd944e4c8c8989a898c (patch) | |
| tree | 5cb2168cbe69a20532766773ddd37d0c8a7fa9d1 | |
| parent | 5b746ec59054fa4abef41f25f40c9e352b65fdd6 (diff) | |
| parent | a7a1a834637baca6952815448e9d1e915fb7cb69 (diff) | |
| download | rust-37b01f9f392b74a1f268acd944e4c8c8989a898c.tar.gz rust-37b01f9f392b74a1f268acd944e4c8c8989a898c.zip | |
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
| -rw-r--r-- | crates/rust-analyzer/src/config/patch_old_style.rs | 2 |
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 e21298e22cb..472e2e0eeea 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 }} })); |
