rust-analyzer/crates/ide-assists/src
bors 54c2ee9fab Auto merge of #15219 - alibektas:15080, r=Veykril
Unify getter and setter assists

This PR combines what previously have been two different files into a single file. I want to talk about the reasons why I did this. The issue that prompted this PR ( and before I forget : this pr fixes #15080 ) mentions an interesting behavior. We combine these two assists into an assist group and the order in which the assists are listed in this group changes depending on the text range of the selected area. The reason for that is that VSCode prioritizes actions that have a bigger impact in a smaller area and until now generate setter assist was only possible to be invoked for a single field whereas you could generate multiple getters for the getter assist. So I used the latter's infra to make former applicable to multiple fields, hence the unification. So this PR solves in essence

1. Make `generate setter` applicable to multiple fields
2. Provide a consistent order of the said assists in listing.
2023-07-06 12:22:39 +00:00
..
handlers Auto merge of #15219 - alibektas:15080, r=Veykril 2023-07-06 12:22:39 +00:00
tests Auto merge of #15219 - alibektas:15080, r=Veykril 2023-07-06 12:22:39 +00:00
utils internal: Replace Display impl for Name 2023-05-24 20:55:12 +02:00
assist_config.rs feat: add config for inserting must_use in generate_enum_as_method 2022-10-24 13:18:24 +05:30
assist_context.rs Import serde derives on converting json to struct 2022-08-06 20:12:21 +04:30
lib.rs Auto merge of #15219 - alibektas:15080, r=Veykril 2023-07-06 12:22:39 +00:00
tests.rs Add render configs for memory layout hovers 2023-05-30 18:36:06 +02:00
utils.rs fix(assist): derive source scope from syntax node to be transformed 2023-06-11 15:25:36 +09:00