aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/inlay_hints.rs
Commit message (Collapse)AuthorAgeFilesLines
* Rename RecordLit -> RecordExprAleksey Kladov2020-07-301-1/+1
|
* Do not show default types in closuresKirill Bulatov2020-07-201-0/+2
|
* Minor perf tweaks per clippyJeremy Kolb2020-07-191-1/+1
|
* call_info works with closuresAleksey Kladov2020-07-171-1/+3
|
* Inlay hints use callablesAleksey Kladov2020-07-161-45/+31
|
* Reduce visibilityAleksey Kladov2020-07-161-2/+2
|
* Semantical call infoAleksey Kladov2020-07-161-5/+5
|
* Align CallableDefId naming with other idsAleksey Kladov2020-07-161-3/+3
|
* Always put config firstAleksey Kladov2020-07-091-47/+47
|
* Switch to expect for the rest of inlay testsAleksey Kladov2020-06-301-74/+100
|
* Simplify most of the inlay hints testsAleksey Kladov2020-06-301-623/+177
|
* Merge #5105bors[bot]2020-06-281-4/+2
|\ | | | | | | | | | | | | | | 5105: Simlify with matches!() r=matklad a=Veetaha Co-authored-by: Veetaha <[email protected]>
| * Simlify with matches!()Veetaha2020-06-281-4/+2
| |
* | Don't show ra_fixture param hintsAleksey Kladov2020-06-281-1/+2
|/
* Use fixtures moreAleksey Kladov2020-06-241-87/+91
|
* Fix type parameter defaultsFlorian Diebold2020-06-051-2/+2
| | | | | They should not be applied in expression or pattern contexts, unless there are other explicitly given type args.
* Inlay Hints: more directly account for self paramAleksey Kladov2020-06-051-2/+1
|
* Move the rest of the features to generated docsAleksey Kladov2020-05-311-2/+20
|
* Code review fixesKirill Bulatov2020-05-041-8/+7
| | | | Co-authored-by: Edwin Cheng <[email protected]>
* Move snake case method to heckKirill Bulatov2020-05-031-15/+2
|
* Omit name hints for enum names similar to parameter namesKirill Bulatov2020-05-031-12/+52
|
* Omit name hints for method names similar to parameter namesKirill Bulatov2020-05-031-13/+25
|
* Convert tests to text-sizeAleksey Kladov2020-04-251-83/+83
|
* Omit more parameter hints in the presence of underscoresLaurențiu Nicola2020-04-181-1/+10
|
* Hide parameter hints for single-argument functions with the same nameLaurențiu Nicola2020-04-091-5/+12
|
* use .expr() to remove refIceSentry2020-04-091-5/+10
|
* clean up param hint checkingIceSentry2020-04-091-18/+18
|
* better `&mut ` and `&` matchingIceSentry2020-04-091-6/+6
|
* ignore `&mut ` and `&` when checking paramsIceSentry2020-04-091-3/+13
|
* remove TODOIceSentry2020-04-081-1/+0
|
* Add more heuristics for hiding obvious param hintsIceSentry2020-04-081-4/+30
| | | | | | | This will now hide "value", "pat", "rhs" and "other" These words were selected from the std because they are used in common functions with only a single param and are obvious by their use. I think it would be good to also hide "bytes" if the type is `[u8; n]` but I'm not sure how to get the param type signature It will also hide the hint if the passed param starts or end with the param_name
* Don't show chaining hints for record literals and unit structsLaurențiu Nicola2020-04-011-10/+23
|
* Better names for config structsAleksey Kladov2020-03-311-34/+34
|
* Improvements based on code review feedbackMatt Hooper2020-03-241-5/+5
|
* Fmt correctionsMatt Hooper2020-03-241-13/+9
|
* Added more unit testsMatt Hooper2020-03-241-76/+159
|
* Added new inlay hint kind and rules for method chainingMatt Hooper2020-03-241-5/+92
|
* Make naming more uniformAleksey Kladov2020-03-121-26/+26
|
* Switch from Vec<InlayKind> to object with propsSteffen Lyngbaek2020-03-121-11/+12
| | | | | | | - Instead of a single object type, use several individual nested types to allow toggling from the settings GUI - Remove unused struct definitions - Install and test that the toggles work
* Address Issues from GithubSteffen Lyngbaek2020-03-101-26/+35
| | | | | | | - Updated naming of config - Define struct in ra_ide and use remote derive in rust-analyzer/config - Make inlayConfig type more flexible to support more future types - Remove constructor only used in tests
* Parameter inlay hint separate from variable type inlay? #2876Steffen Lyngbaek2020-03-101-17/+84
| | | | | | | | | Add setting to allow enabling either type inlay hints or parameter inlay hints or both. Group the the max inlay hint length option into the object. - Add a new type for the inlayHint options. - Add tests to ensure the inlays don't happen on the server side
* Omit unit struct hintsKirill Bulatov2020-03-081-0/+32
|
* Slightly refactor inlay hintsAleksey Kladov2020-02-291-69/+58
|
* Refactor primary IDE APIAleksey Kladov2020-02-261-27/+21
| | | | | | | | | | This introduces the new type -- Semantics. Semantics maps SyntaxNodes to various semantic info, such as type, name resolution or macro expansions. To do so, Semantics maintains a HashMap which maps every node it saw to the file from which the node originated. This is enough to get all the necessary hir bits just from syntax.
* Omit type hints for enum variant bind patsKirill Bulatov2020-02-241-92/+125
|
* Style fixesKirill Bulatov2020-02-231-3/+4
|
* Add basic parameter name hints heuristicsKirill Bulatov2020-02-231-38/+174
|
* Fix the testsKirill Bulatov2020-02-221-5/+105
|
* Show more parameter name hintsKirill Bulatov2020-02-221-27/+34
|
* Simplify inlay hints processingKirill Bulatov2020-02-221-103/+35
|