Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Don't compare ast::Visibility by stringifying | Lukas Tobias Wirth | 2021-05-20 | 1 | -6/+9 |
| | |||||
* | Check for differing attributes in granularity guessing | Lukas Tobias Wirth | 2021-05-20 | 3 | -7/+21 |
| | |||||
* | Replace ImportGranularity::Guess with guessing boolean flag | Lukas Tobias Wirth | 2021-05-19 | 3 | -21/+183 |
| | |||||
* | Add ImportGranularity::Guess | Lukas Tobias Wirth | 2021-05-18 | 1 | -12/+4 |
| | |||||
* | Implement import-granularity guessing | Lukas Tobias Wirth | 2021-05-18 | 1 | -2/+33 |
| | |||||
* | MergeBehavior -> ImportGranularity | Lukas Tobias Wirth | 2021-05-18 | 2 | -10/+33 |
| | |||||
* | internal: remove SyntaxRewriter | Aleksey Kladov | 2021-05-14 | 1 | -1/+3 |
| | |||||
* | internal: remove one more immutable tree | Aleksey Kladov | 2021-05-14 | 1 | -14/+20 |
| | |||||
* | Give MergeBehaviour variants better names | Lukas Wirth | 2021-05-10 | 2 | -45/+53 |
| | |||||
* | internal: introduce `ast::make::ext` module with common shortcuts | Aleksey Kladov | 2021-05-09 | 1 | -1/+1 |
| | | | | | | | | | | There's a tension between keeping a well-architectured minimal orthogonal set of constructs, and providing convenience functions. Relieve this pressure by introducing an dedicated module for non-orthogonal shortcuts. This is inspired by the django.shortcuts module which serves a similar purpose architecturally. | ||||
* | Split out merge_imports module from helpers::insert_use | Lukas Wirth | 2021-04-24 | 2 | -317/+316 |
| | |||||
* | Add cov_marks to insert_use tests | Lukas Wirth | 2021-04-20 | 2 | -1/+39 |
| | |||||
* | Remove SyntaxRewriter usage in insert_use in favor of ted | Lukas Wirth | 2021-04-20 | 2 | -178/+103 |
| | |||||
* | Check for rust doc code attributes like rustdoc does | Lukas Wirth | 2021-04-19 | 1 | -0/+34 |
| | |||||
* | Merge #8467 | bors[bot] | 2021-04-19 | 1 | -0/+8 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/+8 |
| | | |||||
* | | Exclude inherent traits from flyimports | Kirill Bulatov | 2021-04-16 | 1 | -6/+16 |
|/ | |||||
* | Convert Into to From assist | Graeme Coupar | 2021-04-03 | 1 | -1/+5 |
| | | | | | | | | | | | | 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. | ||||
* | Rename target_ty to self_ty | Lukas Wirth | 2021-03-29 | 1 | -1/+1 |
| | |||||
* | Cleanup ide_db imports | Lukas Wirth | 2021-03-27 | 1 | -1/+2 |
| | |||||
* | syntax: return owned string instead of leaking string | cynecx | 2021-03-26 | 2 | -2/+2 |
| | |||||
* | rewrite merge use trees assist to use muatable syntax trees | Aleksey Kladov | 2021-03-22 | 1 | -2/+2 |
| | | | | changelog internal | ||||
* | Reexport PrefixKind to remove deps to hir | Edwin Cheng | 2021-03-22 | 1 | -1/+3 |
| | |||||
* | Less reallocations | Kirill Bulatov | 2021-03-21 | 1 | -3/+0 |
| | |||||
* | Disable unqualified assoc items completion for now | Kirill Bulatov | 2021-03-20 | 1 | -1/+8 |
| | |||||
* | Docs | Kirill Bulatov | 2021-03-20 | 1 | -3/+3 |
| | |||||
* | Do not query item search by name eagerly | Kirill Bulatov | 2021-03-20 | 1 | -121/+89 |
| | |||||
* | Do not propose assoc items without qualifiers | Kirill Bulatov | 2021-03-20 | 1 | -3/+5 |
| | |||||
* | Fix associated items not being appended to paths in import_assets | Lukas Wirth | 2021-03-18 | 1 | -1/+5 |
| | |||||
* | avoid converting types into themselves via .into() (clippy::useless-conversion) | Matthias Krüger | 2021-03-17 | 1 | -1/+1 |
| | | | | example: let x: String = String::from("hello world").into(); | ||||
* | Better strip turbofishes | Kirill Bulatov | 2021-03-08 | 1 | -4/+4 |
| | |||||
* | Add rustdocs and use better names | Kirill Bulatov | 2021-03-08 | 1 | -30/+52 |
| | |||||
* | Less lifetines: derive SemanticsScope in place | Kirill Bulatov | 2021-03-08 | 1 | -24/+23 |
| | |||||
* | Restrict fuzzy qualifiers for now | Kirill Bulatov | 2021-03-08 | 1 | -20/+23 |
| | |||||
* | Enforce the located imports' order | Kirill Bulatov | 2021-03-08 | 1 | -6/+5 |
| | |||||
* | Fix the completion labels and tests | Kirill Bulatov | 2021-03-08 | 1 | -31/+68 |
| | |||||
* | Work towards better import labels | Kirill Bulatov | 2021-03-08 | 1 | -94/+61 |
| | |||||
* | Profile import_assets better | Kirill Bulatov | 2021-03-08 | 1 | -0/+5 |
| | |||||
* | Simplify | Kirill Bulatov | 2021-03-08 | 1 | -13/+5 |
| | |||||
* | Refactor the import location | Kirill Bulatov | 2021-03-08 | 1 | -102/+110 |
| | |||||
* | Do not propose already imported imports | Kirill Bulatov | 2021-03-08 | 1 | -9/+34 |
| | |||||
* | Properly handle turbofishes in qualifiers | Kirill Bulatov | 2021-03-08 | 1 | -5/+7 |
| | |||||
* | Fix some tests | Kirill Bulatov | 2021-03-08 | 1 | -41/+69 |
| | |||||
* | Return more data about located imports | Kirill Bulatov | 2021-03-08 | 1 | -70/+109 |
| | |||||
* | Draft the qualifier import resolution | Kirill Bulatov | 2021-03-08 | 1 | -37/+136 |
| | |||||
* | Filter out path items by the qualifier | Kirill Bulatov | 2021-03-08 | 1 | -24/+15 |
| | |||||
* | Simplify | Kirill Bulatov | 2021-03-08 | 1 | -64/+37 |
| | |||||
* | Find the code to change | Kirill Bulatov | 2021-03-08 | 1 | -55/+130 |
| | |||||
* | Test and initial refactoring | Kirill Bulatov | 2021-03-08 | 1 | -85/+65 |
| | |||||
* | Use upstream cov-mark | Laurențiu Nicola | 2021-03-08 | 2 | -7/+6 |
| |