Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge #989 | bors[bot] | 2019-03-18 | 1 | -0/+2 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 <[email protected]> | ||||
| * | Implement naive version of fill_struct_fields assist | yanchith | 2019-03-17 | 1 | -0/+2 |
| | | |||||
* | | Add 'add_missing_impl_members' assist stub | Igor Matuszewski | 2019-03-16 | 1 | -0/+2 |
|/ | |||||
* | add marks to assists | Aleksey Kladov | 2019-02-24 | 1 | -0/+1 |
| | |||||
* | dont show introduce variable everywhere | Aleksey Kladov | 2019-02-24 | 1 | -5/+15 |
| | |||||
* | Assign IDs to assists | Aleksey Kladov | 2019-02-24 | 1 | -0/+6 |
| | |||||
* | Move `non_trivia_sibling` to `ra_syntax::algo` | Ville Penttinen | 2019-02-21 | 1 | -5/+1 |
| | |||||
* | Fix some typos | Pascal Hertleif | 2019-02-12 | 1 | -1/+1 |
| | |||||
* | ra_assists: assist "providers" can produce multiple assists | Andrea Pretto | 2019-02-11 | 1 | -16/+59 |
| | |||||
* | auto_import assist | Andrea Pretto | 2019-02-09 | 1 | -0/+3 |
| | |||||
* | Improve sorting delegate | robojumper | 2019-02-09 | 1 | -7/+5 |
| | |||||
* | Remove unused import | robojumper | 2019-02-08 | 1 | -2/+2 |
| | |||||
* | Add tests for action target ranges | robojumper | 2019-02-08 | 1 | -3/+63 |
| | |||||
* | Add some assist ranges | robojumper | 2019-02-08 | 1 | -3/+37 |
| | |||||
* | reformat the world | Aleksey Kladov | 2019-02-08 | 1 | -11/+5 |
| | |||||
* | Add new assist to remove dbg!() calls | Ville Penttinen | 2019-02-07 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | This fixes #758. Currently we try to maintain the cursor position relative to the statement under cursor, if the cursor is inside the dbg! macro call. Meaning: let foo = dbg!(some.complex<|>().expression()); Should turn into: let foo = some.complex<|>().expression(); With the cursor staying in place. | ||||
* | assists: compute edit | kjeremy | 2019-02-06 | 1 | -1/+1 |
| | |||||
* | move assists to a separate crate | Aleksey Kladov | 2019-02-06 | 1 | -0/+170 |