aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/inlay_hints.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Add or- and parenthesized-patternsMatthew Jasper2020-02-091-2/+3
|
* cleanup importsAleksey Kladov2020-02-061-1/+2
|
* Fix inlay hints test snippet compilationKirill Bulatov2020-02-031-8/+8
|
* Omit default parameters for reference typesKirill Bulatov2020-01-221-1/+13
|
* Improve parameter hints a bit & add emacs supportFlorian Diebold2020-01-181-14/+9
| | | | | - just include the name, not e.g. `mut` - don't return empty hints (or `_`)
* Micro-optimize type hints to avoid allocationsAleksey Kladov2020-01-161-39/+38
|
* Optimize inlay hintsAleksey Kladov2020-01-151-5/+6
|
* Update test snapshotimtsuki2020-01-141-2/+2
| | | | Signed-off-by: imtsuki <[email protected]>
* Add inlay parameter name hints for function callsimtsuki2020-01-141-2/+139
| | | | Signed-off-by: imtsuki <[email protected]>
* Omit closure parametersKirill Bulatov2019-12-231-1/+36
|
* Optimize and profileAleksey Kladov2019-12-211-3/+8
|
* Remove TruncateOptions structKirill Bulatov2019-12-191-12/+12
|
* Do not add any new configuration parametersKirill Bulatov2019-12-191-35/+9
|
* Ensure hover shows full type declarationKirill Bulatov2019-12-191-2/+2
|
* Omit default parameter typesKirill Bulatov2019-12-191-19/+71
|