rust/crates/ra_assists/src/handlers
bors[bot] 3a7c218fd4
Merge #4576
4576: Add implementation of extract struct from enum variant r=matklad a=mcrakhman

Hi guys! I implemented the extraction functionality including modifying multiple files. The only thing I didn't change the cursor position. I've done it with a previous API, but now snippets have been introduced and I need to figure out how to do it.

Please bear in mind that I am a newcomer in the rust-analyzer (and also Rust) world, so I tried to implement the feature to the best of my knowledge, but the API is very new to me, so I am very welcome to introducing changes etc. 

Co-authored-by: Mikhail Rakhmanov <rakhmanov.m@gmail.com>
2020-06-08 16:28:48 +00:00
..
add_custom_impl.rs Add snippet support for some assists 2020-05-19 20:28:27 +02:00
add_derive.rs Add snippet support for some assists 2020-05-19 20:28:27 +02:00
add_explicit_type.rs Fix type parameter defaults 2020-06-05 20:09:13 +02:00
add_from_impl_for_enum.rs Don't require module docs for Features and Assists 2020-05-31 09:59:38 +02:00
add_function.rs Use snippets in add_missing_members 2020-05-20 01:53:21 +02:00
add_impl.rs Add snippet support for some assists 2020-05-19 20:28:27 +02:00
add_missing_impl_members.rs Better cursor placement when adding impl members 2020-05-20 02:07:21 +02:00
add_new.rs Snippetify add_new 2020-05-20 10:17:46 +02:00
add_turbo_fish.rs Significantly more glorious marks 2020-05-20 13:00:50 +02:00
apply_demorgan.rs Relax cursor position tests in assists 2020-05-20 22:55:37 +02:00
auto_import.rs Relax cursor position tests in assists 2020-05-20 22:55:37 +02:00
change_return_type_to_result.rs Use snippets in change_return_type_to_result 2020-05-20 11:10:15 +02:00
change_visibility.rs Relax cursor position tests in assists 2020-05-20 22:55:37 +02:00
early_return.rs More snippets 2020-05-20 23:33:03 +02:00
extract_struct_from_enum_variant.rs Fix review comments 2020-06-05 13:17:17 +02:00
fill_match_arms.rs Snippetify fill_match_arms 2020-05-20 14:01:10 +02:00
fix_visibility.rs Snippetify fix_visibility 2020-05-20 14:13:17 +02:00
flip_binexpr.rs Relax cursor position tests in assists 2020-05-20 22:55:37 +02:00
flip_comma.rs Relax cursor position tests in assists 2020-05-20 22:55:37 +02:00
flip_trait_bound.rs Relax cursor position tests in assists 2020-05-20 22:55:37 +02:00
inline_local_variable.rs Snippetify introduce/inline var 2020-05-20 23:07:17 +02:00
introduce_named_lifetime.rs introduce_named_lifetime assist wasn't applicable when type parameter 2020-06-04 17:31:21 -05:00
introduce_variable.rs Snippetify introduce/inline var 2020-05-20 23:07:17 +02:00
invert_if.rs Relax cursor position tests in assists 2020-05-20 22:55:37 +02:00
merge_imports.rs More snippets 2020-05-20 23:33:03 +02:00
merge_match_arms.rs More snippets 2020-05-20 23:33:03 +02:00
move_bounds.rs Relax cursor position tests in assists 2020-05-20 22:55:37 +02:00
move_guard.rs More snippets 2020-05-20 23:33:03 +02:00
raw_string.rs Relax cursor position tests in assists 2020-05-20 22:55:37 +02:00
remove_dbg.rs More snippets 2020-05-20 23:33:03 +02:00
remove_mut.rs More snippets 2020-05-20 23:33:03 +02:00
reorder_fields.rs Remove unnecessary clone that prevented clippy from moving on 2020-05-22 17:13:14 -04:00
replace_if_let_with_match.rs More snippets 2020-05-20 23:50:42 +02:00
replace_let_with_if_let.rs More snippets 2020-05-20 23:50:42 +02:00
replace_qualified_name_with_use.rs Relax cursor position tests in assists 2020-05-20 22:55:37 +02:00
replace_unwrap_with_match.rs Snippetify unwrap -> match 2020-05-21 00:01:08 +02:00
split_import.rs More snippets 2020-05-20 23:50:42 +02:00
unwrap_block.rs Remove set_cursor 2020-05-21 00:03:42 +02:00