Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Rename ImplItem to AssocItem | Edwin Cheng | 2020-05-05 | 2 | -15/+15 | |
| | ||||||
* | Merge #4265 | bors[bot] | 2020-05-05 | 1 | -3/+10 | |
|\ | | | | | | | | | | | | | | | 4265: Make `change_visibility` assist work for tuple struct fields r=matklad a=Jesse-Bakker Fixes #4206 Co-authored-by: Jesse Bakker <[email protected]> | |||||
| * | Make `change_visibility` assist work for tuple struct field visibility | Jesse Bakker | 2020-05-02 | 1 | -3/+10 | |
| | | ||||||
* | | Simplify | Aleksey Kladov | 2020-05-04 | 1 | -33/+34 | |
| | | ||||||
* | | Simplify | Aleksey Kladov | 2020-05-04 | 1 | -13/+13 | |
| | | ||||||
* | | Support auto-import in macro | Edwin Cheng | 2020-05-02 | 2 | -9/+35 | |
|/ | ||||||
* | Add unwrap block assist #4156 | Benjamin Coenen | 2020-05-02 | 1 | -3/+2 | |
| | | | | Signed-off-by: Benjamin Coenen <[email protected]> | |||||
* | Merge branch 'master' of github.com:rust-analyzer/rust-analyzer | Benjamin Coenen | 2020-05-02 | 6 | -90/+129 | |
|\ | ||||||
| * | Add missing members generates indented blocks | Aleksey Kladov | 2020-05-02 | 1 | -78/+116 | |
| | | ||||||
| * | Introduce EffectExpr | Aleksey Kladov | 2020-05-02 | 4 | -11/+12 | |
| | | ||||||
| * | Remove lower_path from AssistCtx to Semantic | Edwin Cheng | 2020-05-01 | 1 | -1/+1 | |
| | | ||||||
| * | Introduce LowerCtx for path lowering | Edwin Cheng | 2020-05-01 | 1 | -1/+1 | |
| | | ||||||
* | | Add unwrap block assist #4156 | Benjamin Coenen | 2020-05-02 | 1 | -76/+13 | |
| | | | | | | | | Signed-off-by: Benjamin Coenen <[email protected]> | |||||
* | | Add unwrap block assist #4156 | Benjamin Coenen | 2020-05-01 | 1 | -46/+23 | |
| | | | | | | | | Signed-off-by: Benjamin Coenen <[email protected]> | |||||
* | | Merge branch 'master' of github.com:rust-analyzer/rust-analyzer | Benjamin Coenen | 2020-05-01 | 4 | -89/+127 | |
|\| | ||||||
| * | More principled approach for finding From trait | Aleksey Kladov | 2020-04-29 | 1 | -36/+34 | |
| | | ||||||
| * | Use specific pattern when translating if-let-else to match | Aleksey Kladov | 2020-04-29 | 3 | -10/+76 | |
| | | | | | | | | | | | | We *probably* should actually use the same machinery here, as we do for fill match arms, but just special-casing options and results seems to be a good first step. | |||||
| * | Move shared assist code to utils | Aleksey Kladov | 2020-04-29 | 2 | -47/+21 | |
| | | ||||||
* | | Add unwrap block assist #4156 | Benjamin Coenen | 2020-04-29 | 1 | -2/+2 | |
| | | | | | | | | Signed-off-by: Benjamin Coenen <[email protected]> | |||||
* | | Add unwrap block assist #4156 | Benjamin Coenen | 2020-04-29 | 1 | -0/+435 | |
|/ | | | | Signed-off-by: Benjamin Coenen <[email protected]> | |||||
* | Switch to TryFrom | Aleksey Kladov | 2020-04-25 | 4 | -6/+6 | |
| | ||||||
* | Convert code to text-size | Aleksey Kladov | 2020-04-25 | 19 | -49/+49 | |
| | ||||||
* | Add `pub(crate)` to functions generated in other module | Timo Freiberg | 2020-04-21 | 1 | -46/+23 | |
| | ||||||
* | Jump to sourceChanges in other files | Timo Freiberg | 2020-04-21 | 1 | -11/+2 | |
| | ||||||
* | Add target file information to AssistAction | Timo Freiberg | 2020-04-21 | 1 | -14/+57 | |
| | ||||||
* | Make add_function generate functions in other modules via qualified path | Timo Freiberg | 2020-04-21 | 1 | -24/+195 | |
| | ||||||
* | Do not add default and closure types in 'add explicit type' assist | Kirill Bulatov | 2020-04-21 | 1 | -5/+43 | |
| | ||||||
* | Fix panic in split_imports assist | Aleksey Kladov | 2020-04-20 | 1 | -1/+6 | |
| | | | | | | | | | | | | | | | The fix is admittedly quit literally just papering over. Long-term, I see two more principled approaches: * we switch to a fully tree-based impl, without parse . to_string step; with this approach, there shouldn't be any panics. The results might be nonsensical, but so was the original input. * we preserve the invariant that re-parsing constructed node is an identity, and make all the `make_xxx` method return an `Option`. closes #4044 | |||||
* | Some clippy fixes | Jeremy Kolb | 2020-04-19 | 3 | -3/+3 | |
| | ||||||
* | Change add_function assist to use todo!() | Timo Freiberg | 2020-04-13 | 1 | -27/+27 | |
| | ||||||
* | Fix PR | IceSentry | 2020-04-13 | 1 | -14/+8 | |
| | ||||||
* | Generalize test and clean up imports | IceSentry | 2020-04-13 | 1 | -8/+7 | |
| | ||||||
* | Fix double comma when merge imports on second line | IceSentry | 2020-04-13 | 1 | -3/+37 | |
| | | | | | | | | | | | This fixes the a bug when merging imports from the second line when it already has a comma it would previously insert a comma. There's probably a better way to check for a COMMA. This also ends up with a weird indentation, but rust-fmt can easily deal with it so I'm not sure how to resolve that. Closes #3832 | |||||
* | Remove more unnecessary braces | Laurențiu Nicola | 2020-04-12 | 1 | -2/+2 | |
| | ||||||
* | Align grammar for record patterns and literals | Aleksey Kladov | 2020-04-11 | 1 | -19/+13 | |
| | | | | | | The grammar now looks like this [name_ref :] pat | |||||
* | Merge #3925 | bors[bot] | 2020-04-11 | 1 | -0/+230 | |
|\ | | | | | | | | | | | | | | | | | | | 3925: Implement assist "Reorder field names" r=matklad a=geoffreycopin This PR implements the "Reorder record fields" assist as discussed in issue #3821 . Adding a `RecordFieldPat` variant to the `Pat` enum seemed like the easiest way to handle the `RecordPat` children as a single sequence of elements, maybe there is a better way ? Co-authored-by: Geoffrey Copin <[email protected]> | |||||
| * | Fix doc tests | Geoffrey Copin | 2020-04-11 | 1 | -2/+1 | |
| | | ||||||
| * | Add documentation comment | Geoffrey Copin | 2020-04-11 | 1 | -0/+16 | |
| | | ||||||
| * | Avoid adding a RecordFieldPat variant to the Pat enum | Geoffrey Copin | 2020-04-11 | 1 | -39/+47 | |
| | | ||||||
| * | Remove Option unwraping | Geoffrey Copin | 2020-04-11 | 1 | -3/+3 | |
| | | ||||||
| * | Implement assist "Reorder field names" | Geoffrey Copin | 2020-04-09 | 1 | -0/+207 | |
| | | ||||||
* | | Change missing impl assist to use todo!() instead of unimplemented() | Chris Hopman | 2020-04-10 | 1 | -17/+17 | |
| | | | | | | | | | | | | | | | | | | | | | | | | todo!() "Indicates unfinished code" (https://doc.rust-lang.org/std/macro.todo.html) Rust documentation provides further clarification: > The difference between unimplemented! and todo! is that while todo! > conveys an intent of implementing the functionality later and the > message is "not yet implemented", unimplemented! makes no such claims. todo!() seems more appropriate for assists that insert missing impls. | |||||
* | | Rename some tokens | Aleksey Kladov | 2020-04-10 | 1 | -1/+2 | |
| | | ||||||
* | | Scale token generation back | Aleksey Kladov | 2020-04-10 | 2 | -3/+2 | |
| | | ||||||
* | | Convert more tokens | Aleksey Kladov | 2020-04-10 | 1 | -2/+2 | |
| | | ||||||
* | | Curley tokens | Aleksey Kladov | 2020-04-10 | 1 | -2/+2 | |
| | | ||||||
* | | Semicolon token | Aleksey Kladov | 2020-04-10 | 1 | -1/+1 | |
|/ | ||||||
* | Simpler acessors for keywords | Aleksey Kladov | 2020-04-09 | 1 | -1/+1 | |
| | ||||||
* | Be consistent about token accesors | Aleksey Kladov | 2020-04-09 | 2 | -2/+2 | |
| | ||||||
* | Add _token suffix to token accessors | Aleksey Kladov | 2020-04-09 | 4 | -5/+5 | |
| | | | | | I think this makes is more clear which things are : AstNode and which are : AstToken |