aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/ty/display.rs
Commit message (Collapse)AuthorAgeFilesLines
* Move type inlay hint truncation to language serverEmil Lauridsen2019-11-191-4/+39
| | | | | | | | | | | | This commit implements a general truncation framework for HirFormatter that keeps track of how much has been output so far. This information can then be used to perform truncation inside the language server, instead of relying on the client. Initial support is implemented for truncating types hints using the maxInlayHintLength server config option. The existing solution in the VSCode extension has been removed in favor of letting the server truncate type hints.
* Added test for check doc strings in crates.Alexander Andreev2019-09-301-0/+2
| | | | #1856
* Replace Display by a pretty printing trait for TyFlorian Diebold2019-03-161-0/+56
This allows removing the names from Adt and FnDef (and more later), as a first step towards aligning more with chalk's Ty :)