mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Merge pull request #2297 from kiljacken/master
Add fancy truncation of type hints.
This commit is contained in:
commit
eec68e6f45
10 changed files with 134 additions and 35 deletions
|
@ -888,7 +888,7 @@ pub fn handle_inlay_hints(
|
|||
let analysis = world.analysis();
|
||||
let line_index = analysis.file_line_index(file_id)?;
|
||||
Ok(analysis
|
||||
.inlay_hints(file_id)?
|
||||
.inlay_hints(file_id, world.options.max_inlay_hint_length)?
|
||||
.into_iter()
|
||||
.map(|api_type| InlayHint {
|
||||
label: api_type.label.to_string(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue