rust-analyzer/crates/ide-assists
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
..
src Auto merge of #17258 - maxwase:code-assist-async-sugar, r=Veykril 2024-05-27 16:40:04 +00:00
Cargo.toml Move diagnostics docs generation into xtask/codegen 2024-03-04 17:14:14 +01:00