mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-13 15:33:53 +00:00
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
This commit is contained in:
commit
37b01f9f39
@ -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 }} }));
|
||||
|
Loading…
Reference in New Issue
Block a user