aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/inlay_hints.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Show type hints for & patternsAleksey Kladov2019-12-071-16/+15
|
* Rename Source -> InFileAleksey Kladov2019-11-281-1/+1
|
* rename ra_ide_api -> ra_ideAleksey Kladov2019-11-271-0/+543