Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | internal: cut deps between assists and diagnostics | Aleksey Kladov | 2021-06-14 | 1 | -127/+4 |
| | |||||
* | internal: prepare to move assist definitions | Aleksey Kladov | 2021-06-14 | 1 | -16/+14 |
| | |||||
* | clippy::useless_return | Maan2003 | 2021-06-13 | 1 | -4/+4 |
| | |||||
* | reduce duplication | Aleksey Kladov | 2021-05-23 | 1 | -2/+1 |
| | |||||
* | Correctly resolve crate name in use paths when import shadows itself | Lukas Tobias Wirth | 2021-05-23 | 1 | -2/+1 |
| | |||||
* | use more precise name | Aleksey Kladov | 2021-05-22 | 1 | -1/+1 |
| | |||||
* | Index retrieval fix | Kirill Bulatov | 2021-05-03 | 1 | -1/+1 |
| | |||||
* | Small fixes | Kirill Bulatov | 2021-05-03 | 1 | -2/+2 |
| | |||||
* | Add docs and use better naming | Kirill Bulatov | 2021-05-03 | 1 | -5/+20 |
| | |||||
* | Resolve single assist only | Kirill Bulatov | 2021-05-03 | 1 | -3/+36 |
| | |||||
* | Add a way to resolve certain assists | Kirill Bulatov | 2021-05-03 | 1 | -3/+21 |
| | |||||
* | Merge #8317 | bors[bot] | 2021-04-23 | 1 | -0/+2 |
|\ | | | | | | | | | | | | | | | 8317: Convert tuple struct to named struct assist r=Veykril a=unexge Closes https://github.com/rust-analyzer/rust-analyzer/issues/8192 Co-authored-by: unexge <[email protected]> | ||||
| * | Add convert tuple struct to named struct assist | unexge | 2021-04-04 | 1 | -0/+2 |
| | | |||||
* | | Merge #8467 | bors[bot] | 2021-04-19 | 1 | -0/+2 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 assist | jake | 2021-04-11 | 1 | -0/+2 |
| |/ | |||||
* / | internal: unfork code paths for unresolved and resolved assist | Aleksey Kladov | 2021-04-13 | 1 | -0/+2 |
|/ | |||||
* | Convert Into to From assist | Graeme Coupar | 2021-04-03 | 1 | -0/+2 |
| | | | | | | | | | | | | This adds a "Convert Into to From" assist, useful since clippy has recently started adding lints on every `Into`. It covers converting the signature, and converting any `self`/`Self` references within the body to the correct types. It does assume that every instance of `Into` can be converted to a `From`, which I _think_ is the case now. Let me know if there's something I'm not thinking of and I can try and make it smarter. | ||||
* | Implement "Extract type alias" assist | Jonas Schievink | 2021-03-26 | 1 | -0/+2 |
| | |||||
* | 7709: Added the assist to generate is_empty function | Chetan Khilosiya | 2021-03-15 | 1 | -0/+2 |
| | | | | | the assist will be shown when the len function is implemented. is_empty internally uses len function. | ||||
* | feat: add assist to conver for_each into for loops | Luiz Carlos MourĂ£o Paes de Carvalho | 2021-03-10 | 1 | -0/+2 |
| | |||||
* | 7708: Initial implementation of generate Default assist. | Chetan Khilosiya | 2021-03-06 | 1 | -0/+2 |
| | | | | The Generate Default impl from new function. | ||||
* | Merge #7777 | bors[bot] | 2021-03-02 | 1 | -0/+2 |
|\ | | | | | | | | | | | | | | | 7777: Implement line<->block comment assist r=Veykril a=djrenren Fixes: https://github.com/rust-analyzer/rust-analyzer/issues/6515 Co-authored-by: John Renner <[email protected]> | ||||
| * | Implement line<->block comment assist | John Renner | 2021-02-25 | 1 | -0/+2 |
| | | |||||
* | | Use consistent naming for assist | Aleksey Kladov | 2021-02-28 | 1 | -6/+6 |
| | | |||||
* | | generate try_into instead of into | Domantas Jadenkus | 2021-02-27 | 1 | -1/+1 |
| | | |||||
* | | rename generate_enum_match_method file to match assist name | Domantas Jadenkus | 2021-02-27 | 1 | -2/+2 |
| | | |||||
* | | move into_ and as_ generation to a separate file | Domantas Jadenkus | 2021-02-27 | 1 | -2/+3 |
| | | |||||
* | | add generate_enum_as_method assist | Domantas Jadenkus | 2021-02-27 | 1 | -0/+1 |
| | | |||||
* | | add generate_enum_into_method assist | Domantas Jadenkus | 2021-02-27 | 1 | -0/+1 |
| | | |||||
* | | rename existing assist to generate_enum_is_method | Domantas Jadenkus | 2021-02-27 | 1 | -1/+1 |
| | | |||||
* | | Add convert_for_to_iter_for_each assist | Matt Hall | 2021-02-23 | 1 | -0/+2 |
|/ | |||||
* | 7526: Rename crate assists to ide_assists. | Chetan Khilosiya | 2021-02-22 | 1 | -0/+246 |