rust/crates
bors[bot] 7c117567ab Merge #989
989: Implement naive version of fill_struct_fields assist r=matklad a=yanchith

Fixes #964

This implements the `fill_struct_fields` assist. Currently only works for named struct fields, but not for tuple structs, because we seem to be missing a `TupleStructLit` (akin to `StructLit`, but for tuple structs). I am happy to implement `TupleStructLit` parsing given some guidance (provided it's really missing) and make the assist work for tuple structs as well. Could do so either in this PR, or another one 🙂 

Sorry if I missed something important, this is my first PR for Rust Analyzer.

Btw is there any way to run the assists in emacs?

UPDATE: I just realized that parsing `TupleStructLit` would be quite difficult as it it really similar, if not identical to a function call...

Co-authored-by: yanchith <yanchi.toth@gmail.com>
2019-03-18 08:24:18 +00:00
..
gen_lsp_server show message in client's UI if workspace fails to load 2019-03-05 16:33:05 +03:00
ra_arena
ra_assists Merge #989 2019-03-18 08:24:18 +00:00
ra_batch Rename and change add_roots to return a Vec. 2019-03-07 01:05:07 +01:00
ra_cli Updates 2019-03-05 10:26:36 -05:00
ra_db add skeleton for macro-aware name resolutions 2019-03-17 12:46:13 +03:00
ra_fmt
ra_hir Merge #982 2019-03-17 21:41:37 +00:00
ra_ide_api remove old macro support 2019-03-17 12:53:22 +03:00
ra_ide_api_light Updates 2019-03-05 10:26:36 -05:00
ra_lsp_server LSP: Support EnumMember and Field 2019-03-11 13:58:38 -04:00
ra_mbe hack around non-terminating macro expansion 2019-03-17 12:52:52 +03:00
ra_parser Merge #987 2019-03-18 04:16:20 +00:00
ra_project_model Specify derive feature for serde 2019-03-08 01:58:29 +09:00
ra_syntax Merge #983 2019-03-17 14:34:14 +00:00
ra_text_edit
ra_tt
test_utils fix error on wrong path 2019-03-17 12:53:22 +03:00
thread_worker
tools Check installed extension 2019-03-05 18:19:36 -03:00