aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/inlay_hints.rs
Commit message (Collapse)AuthorAgeFilesLines
* syntax: return owned string instead of leaking stringcynecx2021-03-261-1/+1
|
* Power up goto_implementationLukas Wirth2021-03-151-1/+1
| | | | | by allowing it to be invoked on references of names, showing all (trait) implementations of the given type in all crates including builtin types
* Allow comments between newlines in chaining hintsPaco SoberĂ³n2021-02-161-16/+22
|
* Update fixed testsJonas Schievink2021-02-101-0/+1
|
* Only hide parameter hints for path, field and methodcall expressionsLukas Wirth2021-01-271-1/+19
|
* .Aleksey Kladov2021-01-191-1/+1
|
* Render Fn* trait objects and impl types as rust doesLukas Wirth2021-01-131-0/+37
|
* Skip leading underscores unconditionallyJacob Pratt2021-01-101-2/+5
|
* Short-circuit boolean operationJacob Pratt2021-01-101-4/+8
|
* Remove unnecessary allocationJacob Pratt2021-01-101-7/+12
| | | | | | | | | | The case-insensitive prefix/suffix check can be performed character-by-character. This allows the check to be done without having to allocate a new string. As a side effect, it's also no longer necessary to convert the entire string to lowercase, as it's done as needed. As the only case equality we're handling is ASCII, this operation can be further optimized by using byte equality, rather than character equality.
* Hide argument name hint regardless of caseJacob Pratt2021-01-091-3/+10
|
* More maintainable configAleksey Kladov2021-01-061-10/+11
| | | | | | | Rather than eagerly converting JSON, we losslessly keep it as is, and change the shape of user-submitted data at the last moment. This also allows us to remove a bunch of wrong Defaults
* Move the helpers into ide_dbKirill Bulatov2020-11-281-2/+2
|
* Extract the import code into the shared moduleKirill Bulatov2020-11-271-2/+2
|
* Only show `self` ident when showing parameter self hintsLukas Wirth2020-11-021-2/+23
|
*-. Merge #6393 #6399bors[bot]2020-11-021-2/+106
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6393: Remove repetitive inlay hints (take 2) r=matklad a=lnicola 6399: Keep generic annotations when qualifying things r=matklad a=Veykril The `qualify_path` assists currently eats up already annotated generics in all but one cases which can be annoying if one already pre-fills generics of a type before it's been qualified. Co-authored-by: Matthew Sanetra <[email protected]> Co-authored-by: Lukas Wirth <[email protected]>
| * | Add check if param name is similar to fn nameMatthew Sanetra2020-10-281-2/+106
| |/
* / do not use associated types placeholder for inlay hintBenjamin Coenen2020-10-281-0/+21
|/ | | | Signed-off-by: Benjamin Coenen <[email protected]>
* Hide paramater inlay hints for cloned vars if applicableLukas Wirth2020-10-221-1/+28
|
* Don't rely on display names in inlay_hintsAleksey Kladov2020-10-201-6/+13
|
* More type safety around namesAleksey Kladov2020-10-201-3/+2
|
* Rename declaration_name -> display_nameAleksey Kladov2020-10-201-1/+1
| | | | | | | | Declaration names sounds like a name of declaration -- something you can use for analysis. It empathically isn't, and is just a label displayed in various UI. It's important not to confuse the two, least we accidentally mix semantics with UI (I believe, there's already a case of this in the FamousDefs at least).
* Fix iterator hint shortening heuristicLukas Wirth2020-10-121-2/+2
|
* Also replace the associated types with iterKirill Bulatov2020-10-101-11/+14
|
* Add a testKirill Bulatov2020-10-101-23/+39
|
* Clean up inlay_hintsLukas Wirth2020-10-071-18/+14
|
* Shorten iterator hints for std::iter iterators behind referencesLukas Wirth2020-10-071-2/+4
|
* Shorten iterator chain hintsLukas Wirth2020-10-071-36/+81
|
* Move IntoIterator into FamousDefsLukas Wirth2020-10-071-23/+5
|
* Use FamousDefs for shorten_iterator hintLukas Wirth2020-10-061-57/+36
|
* Shorten type hints for std::iter IteratorsLukas Wirth2020-10-061-6/+125
|
* Fix trait object hir formatting behind pointer and referencesLukas Wirth2020-10-061-0/+34
|
* Improve readability in inlay_hints.rsIgor Aleksanov2020-10-031-4/+5
|
* Remove 'for_expr' test from inlay_hints.rsIgor Aleksanov2020-10-031-14/+1
|
* Make the tests for complete/incomplete for inlay hints workIgor Aleksanov2020-10-031-10/+77
|
* Better inlay hints in 'for' loopsIgor Aleksanov2020-10-031-2/+49
|
* rename mock_analysis -> fixtureAleksey Kladov2020-10-021-3/+3
|
* Switch to expect_test from crates.ioAleksey Kladov2020-08-211-1/+1
|
* Fix typo in commentDave Lage2020-08-151-1/+1
|
* Rename ra_ide -> ideAleksey Kladov2020-08-131-0/+927