rust/crates/ide_completion/src
bors[bot] 77f0c92fd8
Merge #8794
8794: Give MergeBehaviour variants better names r=Veykril a=Veykril

I never really liked the variant names I gave this enum from the beginning and then I found out about rustfmt's `imports_granularity` config:

> imports_granularity
>
> How imports should be grouped into use statements. Imports will be merged or split to the configured level of granularity.
> 
>     Default value: Preserve
>     Possible values: Preserve, Crate, Module, Item
>     Stable: No

I personally prefer using `crate` over `full` and `module` over last, they seem more descriptive. Keeping these similar between tooling also seems like a good plus point to me.

We might even wanna take over the entire enum at some point if we have a `format/cleanup imports` assists in the future which would probably want to also have the `preserve` and `item` options.

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2021-05-10 20:10:59 +00:00
..
completions Simplify 2021-05-06 22:39:51 +08:00
render internal: normalize name 2021-04-30 11:52:31 +03:00
completions.rs simplify 2021-05-05 22:55:12 +02:00
config.rs
context.rs Add = to pattern recovery 2021-05-08 23:14:08 +02:00
generated_lint_completions.rs Format generated features manually instead of relying on rustfmt 2021-02-27 16:25:06 +02:00
item.rs Remove SyntaxRewriter usage in insert_use in favor of ted 2021-04-20 02:09:12 +02:00
lib.rs Corrected 2 typos on line 83 2021-05-10 20:05:32 +02:00
patterns.rs clippy::complexity simplifications related to Iterators 2021-03-21 13:13:34 +01:00
render.rs completion relevance distinguish between exact type match and could unify 2021-03-26 09:18:18 -07:00
test_utils.rs Give MergeBehaviour variants better names 2021-05-10 21:14:59 +02:00