aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists/src/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* Fix casingJeremy Kolb2020-01-141-4/+7
|
* Fix ordering problem between qualifying paths and substituting paramsFlorian Diebold2020-01-111-0/+1
|
* assists: add assist for custom implementation for derived traitPaulo Lieuthier2019-11-281-0/+2
|
* initial invert_ifbravomikekilo2019-11-211-0/+2
|
* Add add_new assistWesley Norris2019-11-091-0/+2
| | | | | | | 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.
* Restore assists testsAleksey Kladov2019-11-041-3/+5
|
* Rename MockDatabase -> TestDBAleksey Kladov2019-11-041-16/+16
| | | | Actually working rename is sooo useful!
* Remove more duplication in test fixturesAleksey Kladov2019-11-041-10/+10
|
* further simplify assistsAleksey Kladov2019-10-271-62/+21
|
* Merge #2090bors[bot]2019-10-271-3/+3
|\ | | | | | | | | | | | | | | 2090: move public stuff to top r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * rename auto_import -> add_importAleksey Kladov2019-10-271-3/+3
| | | | | | | | We are long way from auto imports at the moment
* | Fixes #2054.Wesley Norris2019-10-271-0/+2
|/ | | | This adds the `flip_trait_bound` assist which allows for the swapping of two trait bounds in a trait list that are next to each other.
* auto-generate assists docs and testsAleksey Kladov2019-10-251-1/+3
|
* Adds "replace with guarded return" assistMikhail Modin2019-10-201-0/+2
|
* WIP: Add demorgan application with naive negationLúcás Meier2019-10-031-0/+2
|
* remove ast_editor.rsAleksey Kladov2019-09-301-1/+0
|
* Start simplifying editing APIAleksey Kladov2019-09-261-1/+0
|
* keep ast creation API simpleAleksey Kladov2019-09-261-3/+1
|
* move ast builder to a separate fileAleksey Kladov2019-09-251-0/+1
|
* move assists to subdirAleksey Kladov2019-09-251-47/+53
|
* feat(assists): raw string <-> usual string manipulationGeobert Quach2019-09-191-0/+5
| | | | Fixes #1730
* Minor typo fix for ra_assists code docNelson Chen2019-09-081-1/+1
|
* add assist to move type bounds to where clauseEkaterina Babshukova2019-09-051-0/+2
|
* Add merge_match_arm assist, bump rowan to 0.6.1Phil Ellison2019-07-291-0/+2
|
* allow rustfmt to reorder importsAleksey Kladov2019-07-041-8/+8
| | | | | | This wasn't a right decision in the first place, the feature flag was broken in the last rustfmt release, and syntax highlighting of imports is more important anyway
* add assist to move arm condition to match guardUnreal Hoang2019-05-211-2/+3
|
* renameUnreal Hoang2019-05-161-2/+2
|
* removed duplicating fill_struct_fields assistSergey Parilin2019-05-061-2/+0
|
* move guard to arm body assist.Unreal Hoang2019-05-011-0/+2
|
* Merge #1194bors[bot]2019-04-221-1/+1
|\ | | | | | | | | | | | | | | | | 1194: Pr 1190 r=matklad a=matklad Co-authored-by: Andrea Pretto <[email protected]> Co-authored-by: Aleksey Kladov <[email protected]>
| * complete_import: add new import resolver infrastructure with some hardcoded ↵Andrea Pretto2019-04-211-1/+1
| | | | | | | | | | | | importable name. Changes complete_scope to support that.
* | more type safetyAleksey Kladov2019-04-221-1/+1
| |
* | start structured editing APIAleksey Kladov2019-04-211-0/+1
|/
* Add explicit type assist.Marco Groppo2019-04-081-0/+2
|
* Assist to flip (some) binary expressions.Marco Groppo2019-03-251-2/+2
| | | | This assist can flip the following operators: ==, !=, >, >=, <, <=.
* Merge #1037bors[bot]2019-03-251-0/+2
|\ | | | | | | | | | | | | | | 1037: inline immutable local varialbe r=matklad a=gfreezy resolved #1033 Co-authored-by: gfreezy <[email protected]>
| * inline immutable local varialbegfreezy2019-03-251-0/+2
| |
* | Merge #1036bors[bot]2019-03-251-0/+2
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | 1036: Assist to flip equality (==) and negated equality (!=) operands. r=matklad a=marcogroppo This PR adds an assist to flip the equality operands. I hope this is the right way to do this (I'm a newbie...) Fixes #1023. Co-authored-by: Marco Groppo <[email protected]>
| * Assist to flip equality (==) and negative equality (!=) operands.Marco Groppo2019-03-241-0/+2
| |
* | Add assist for adding default methodsgfreezy2019-03-231-0/+1
|/
* Merge #989bors[bot]2019-03-181-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 assistyanchith2019-03-171-0/+2
| |
* | Add 'add_missing_impl_members' assist stubIgor Matuszewski2019-03-161-0/+2
|/
* add marks to assistsAleksey Kladov2019-02-241-0/+1
|
* dont show introduce variable everywhereAleksey Kladov2019-02-241-5/+15
|
* Assign IDs to assistsAleksey Kladov2019-02-241-0/+6
|
* Move `non_trivia_sibling` to `ra_syntax::algo`Ville Penttinen2019-02-211-5/+1
|
* Fix some typosPascal Hertleif2019-02-121-1/+1
|
* ra_assists: assist "providers" can produce multiple assistsAndrea Pretto2019-02-111-16/+59
|
* auto_import assistAndrea Pretto2019-02-091-0/+3
|