diff options
| author | Lukas Wirth <lukastw97@gmail.com> | 2022-06-11 13:41:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-11 13:41:06 +0200 |
| commit | a7a1a834637baca6952815448e9d1e915fb7cb69 (patch) | |
| tree | 515b08a2c0eacbb63d46bea94eb4baf3b3eb2cd9 | |
| parent | ba329913fa33c29d4ccabf46998d3a0cfac57b0c (diff) | |
| download | rust-a7a1a834637baca6952815448e9d1e915fb7cb69.tar.gz rust-a7a1a834637baca6952815448e9d1e915fb7cb69.zip | |
fix: Fix config patching for callable snippets
| -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 }} })); |
