aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_db/src/helpers
Commit message (Collapse)AuthorAgeFilesLines
* Unescape generated clippy lintsLukas Wirth2021-06-051-314/+726
|
* Replace `-` with `_` in generated lint namesLukas Wirth2021-06-041-137/+135
|
* Generate default lint groupsLukas Wirth2021-06-041-0/+29
|
* Generate default lint completionsLukas Wirth2021-06-041-0/+6891
|
* Implement per-edition preludesJonas Schievink2021-06-011-10/+12
|
* Exclude inherent traits more eagerlyKirill Bulatov2021-05-271-11/+8
|
* Don't compare ast::Visibility by stringifyingLukas Tobias Wirth2021-05-201-6/+9
|
* Check for differing attributes in granularity guessingLukas Tobias Wirth2021-05-203-7/+21
|
* Replace ImportGranularity::Guess with guessing boolean flagLukas Tobias Wirth2021-05-193-21/+183
|
* Add ImportGranularity::GuessLukas Tobias Wirth2021-05-181-12/+4
|
* Implement import-granularity guessingLukas Tobias Wirth2021-05-181-2/+33
|
* MergeBehavior -> ImportGranularityLukas Tobias Wirth2021-05-182-10/+33
|
* internal: remove SyntaxRewriterAleksey Kladov2021-05-141-1/+3
|
* internal: remove one more immutable treeAleksey Kladov2021-05-141-14/+20
|
* Give MergeBehaviour variants better namesLukas Wirth2021-05-102-45/+53
|
* internal: introduce `ast::make::ext` module with common shortcutsAleksey Kladov2021-05-091-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_useLukas Wirth2021-04-242-317/+316
|
* Add cov_marks to insert_use testsLukas Wirth2021-04-202-1/+39
|
* Remove SyntaxRewriter usage in insert_use in favor of tedLukas Wirth2021-04-202-178/+103
|
* Check for rust doc code attributes like rustdoc doesLukas Wirth2021-04-191-0/+34
|
* Merge #8467bors[bot]2021-04-191-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 assistjake2021-04-111-0/+8
| |
* | Exclude inherent traits from flyimportsKirill Bulatov2021-04-161-6/+16
|/
* Convert Into to From assistGraeme Coupar2021-04-031-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_tyLukas Wirth2021-03-291-1/+1
|
* Cleanup ide_db importsLukas Wirth2021-03-271-1/+2
|
* syntax: return owned string instead of leaking stringcynecx2021-03-262-2/+2
|
* rewrite merge use trees assist to use muatable syntax treesAleksey Kladov2021-03-221-2/+2
| | | | changelog internal
* Reexport PrefixKind to remove deps to hirEdwin Cheng2021-03-221-1/+3
|
* Less reallocationsKirill Bulatov2021-03-211-3/+0
|
* Disable unqualified assoc items completion for nowKirill Bulatov2021-03-201-1/+8
|
* DocsKirill Bulatov2021-03-201-3/+3
|
* Do not query item search by name eagerlyKirill Bulatov2021-03-201-121/+89
|
* Do not propose assoc items without qualifiersKirill Bulatov2021-03-201-3/+5
|
* Fix associated items not being appended to paths in import_assetsLukas Wirth2021-03-181-1/+5
|
* avoid converting types into themselves via .into() (clippy::useless-conversion)Matthias Krüger2021-03-171-1/+1
| | | | example: let x: String = String::from("hello world").into();
* Better strip turbofishesKirill Bulatov2021-03-081-4/+4
|
* Add rustdocs and use better namesKirill Bulatov2021-03-081-30/+52
|
* Less lifetines: derive SemanticsScope in placeKirill Bulatov2021-03-081-24/+23
|
* Restrict fuzzy qualifiers for nowKirill Bulatov2021-03-081-20/+23
|
* Enforce the located imports' orderKirill Bulatov2021-03-081-6/+5
|
* Fix the completion labels and testsKirill Bulatov2021-03-081-31/+68
|
* Work towards better import labelsKirill Bulatov2021-03-081-94/+61
|
* Profile import_assets betterKirill Bulatov2021-03-081-0/+5
|
* SimplifyKirill Bulatov2021-03-081-13/+5
|
* Refactor the import locationKirill Bulatov2021-03-081-102/+110
|
* Do not propose already imported importsKirill Bulatov2021-03-081-9/+34
|
* Properly handle turbofishes in qualifiersKirill Bulatov2021-03-081-5/+7
|
* Fix some testsKirill Bulatov2021-03-081-41/+69
|
* Return more data about located importsKirill Bulatov2021-03-081-70/+109
|