aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_assists/src/tests.rs
Commit message (Collapse)AuthorAgeFilesLines
* Split out merge_imports module from helpers::insert_useLukas Wirth2021-04-241-4/+1
|
* Merge #8467bors[bot]2021-04-191-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8467: Adds impl Deref assist r=jhgg a=jhgg This PR adds a new `generate_deref` assist that automatically generates a deref impl for a given struct field. Check out this gif: ![2021-04-11_00-33-33](https://user-images.githubusercontent.com/5489149/114296006-b38e1000-9a5d-11eb-9112-807c01b8fd0a.gif) -- I have a few Q's: - [x] Should I write more tests, if so, what precisely should I test for? - [x] I have an inline question on line 65, can someone provide guidance? :) - [x] I can implement this for `ast::TupleField` too. But should it be a separate assist fn, or should I try and jam both into the `generate_deref`? - [x] I want to follow this up with an assist on `impl $0Deref for T {` which would automatically generate a `DerefMut` impl that mirrors the Deref as well, however, I could probably use some pointers on how to do that, since I'll have to reach into the ast of `fn deref` to grab the field that it's referencing for the `DerefMut` impl. Co-authored-by: jake <[email protected]>
| * Adds impl Deref assistjake2021-04-111-0/+1
| |
* | Add some more error messages to fixture failure casesLukas Wirth2021-04-171-2/+4
|/
* Make group imports configurableasv2021-03-071-0/+1
|
* Compress testsAleksey Kladov2021-03-021-45/+1
|
* pull out suggest_name::* to utils; enchance heuristicsVladyslav Katasonov2021-03-021-1/+45
|
* Use consistent naming for assistAleksey Kladov2021-02-281-1/+1
|
* 7526: Rename crate assists to ide_assists.Chetan Khilosiya2021-02-221-0/+275