rust/crates
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
..
ra_arena
ra_assists Merge #4576 2020-06-08 16:28:48 +00:00
ra_cfg add support of feature flag for runnables #4464 2020-05-23 20:59:18 +02:00
ra_db Merge #4760 2020-06-05 15:23:22 +00:00
ra_flycheck Cleanups 2020-05-15 02:09:30 +02:00
ra_fmt
ra_hir Merge #4689 2020-06-05 15:46:28 +00:00
ra_hir_def Merge #4760 2020-06-05 15:23:22 +00:00
ra_hir_expand Minimize FileLoader interface 2020-06-05 17:22:56 +02:00
ra_hir_ty Clean up handling of int/float literal types 2020-06-06 17:52:00 +02:00
ra_ide Better unsafe highlihgting tests 2020-06-08 15:23:03 +02:00
ra_ide_db Swap into_definition and definition semantics for FieldShorthand variant 2020-06-08 15:37:12 +03:00
ra_mbe Reuse Vec allocations 2020-05-16 22:20:44 +02:00
ra_parser Move default const test out of line 2020-06-04 13:06:57 -04:00
ra_proc_macro
ra_proc_macro_srv Fix tests, apply code review proposals 2020-05-31 03:10:23 +03:00
ra_prof
ra_project_model Use Option<&str> for target instead of Option<&String> 2020-06-08 12:10:23 -04:00
ra_syntax Fix bug in lexer for format specifier where the type and width were not correctly distinguished 2020-06-07 22:57:24 +02:00
ra_text_edit Formalize JoinLines protocol extension 2020-05-21 20:05:33 +02:00
ra_toolchain
ra_tt Reduce reallocations in ra_tt::buffer::TokenBuffer::new_inner 2020-05-16 22:20:44 +02:00
rust-analyzer Merge #4784 2020-06-08 16:20:45 +00:00
stdx Use split1 when formatting function signature params 2020-06-03 07:26:15 -04:00
test_utils Use split1 when formatting function signature params 2020-06-03 07:26:15 -04:00