rust-analyzer/crates
bors[bot] 3ad11973ac
Merge #2165
2165: ra_assists: Add add_new assist r=matklad a=rep-nop

Adds a new assist to autogenerate a new fn based on the selected struct, excluding tuple structs and unions. The fn will inherit the same visibility as the struct and the assist will attempt to reuse any existing impl blocks that exist at the same level of struct.

Not marking this as closing #1644 since there's a part 2 of adding autocompletion for when someone starts typing `[pub ]fn new(...`

Co-authored-by: Wesley Norris <repnop@outlook.com>
2019-11-15 07:01:19 +00:00
..
ra_arena cleanup 2019-08-06 10:57:16 +02:00
ra_assists Merge #2165 2019-11-15 07:01:19 +00:00
ra_batch Update crates 2019-11-07 13:05:12 -05:00
ra_cfg Disallow regressing crate docs 2019-11-12 15:41:02 +03:00
ra_cli Bump psm, console, indicatif 2019-11-05 10:38:50 -05:00
ra_db Fix unused import 2019-11-12 12:01:13 +01:00
ra_fmt Disallow regressing crate docs 2019-11-12 15:41:02 +03:00
ra_hir Move body queries to hir_def 2019-11-14 17:37:22 +03:00
ra_hir_def Move body queries to hir_def 2019-11-14 17:37:22 +03:00
ra_hir_expand Handle macro-generated expressions slightly less wrong 2019-11-14 10:30:30 +03:00
ra_ide_api Cleanup hover 2019-11-14 22:53:42 -05:00
ra_lsp_server Update crates 2019-11-07 13:05:12 -05:00
ra_mbe Remove typed macro parsing API 2019-11-09 13:14:10 +03:00
ra_parser Simplify parsing 2019-11-14 17:36:27 +03:00
ra_prof Renormalize line endings 2019-11-14 19:44:37 -05:00
ra_project_model return Error instead of panicking in from_cargo_metadata 2019-11-12 12:01:13 +01:00
ra_syntax Make make:: builders slightly more convenient 2019-11-13 11:59:18 +03:00
ra_text_edit introduce SingleFileChange 2019-10-25 11:49:38 +03:00
ra_tt Use macro_rules shift to map text ranges 2019-11-05 02:09:16 +08:00
ra_vfs_glob relative-path 1.0 2019-10-17 13:08:33 -04:00
test_utils support range selection in assist docs 2019-10-26 20:57:23 +03:00