rust-analyzer/crates/ide-assists/src
bors b32f181f47 Auto merge of #17258 - maxwase:code-assist-async-sugar, r=Veykril
Add `toggle_async_sugar` assist code action

Implement code action for sugaring and de-sugaring asynchronous functions.

This code action does not import `Future` trait when de-sugaring and does not touch function boby, I guess this can be implemented later if needed. This action also does not take into consideration other bounds because IMO it's usually "let me try to use sugared version here".

Feel free to request changes, that's my first code action implementation 😄

Closes #17010
Relates to #16195
2024-05-27 16:40:04 +00:00
..
handlers Auto merge of #17258 - maxwase:code-assist-async-sugar, r=Veykril 2024-05-27 16:40:04 +00:00
tests Auto merge of #17258 - maxwase:code-assist-async-sugar, r=Veykril 2024-05-27 16:40:04 +00:00
utils Allow hir::Param to refer to other entity params aside from functions 2024-05-18 12:35:55 +02:00
assist_config.rs Make term search fuel configurable 2024-05-08 19:46:33 +03:00
assist_context.rs Import serde derives on converting json to struct 2022-08-06 20:12:21 +04:30
lib.rs Auto merge of #17258 - maxwase:code-assist-async-sugar, r=Veykril 2024-05-27 16:40:04 +00:00
tests.rs Make term search fuel configurable 2024-05-08 19:46:33 +03:00
utils.rs Consider exported_name="main" functions in test modules as tests 2024-04-04 14:51:10 +02:00