diff options
author | Aleksey Kladov <[email protected]> | 2019-11-20 05:38:25 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-11-20 05:38:25 +0000 |
commit | eec68e6f451ee7675ce2cb29b696df091e6aed13 (patch) | |
tree | f83c828be31f5ac3950bf41c027a30365cfc7bd6 /crates/ra_lsp_server/src/main_loop | |
parent | 0e61ba3750df7e3e19eda21b6486bf70d6dffc72 (diff) | |
parent | bf5ac4fe3952ee0db9fe18a185e39a209c58e79b (diff) |
Merge pull request #2297 from kiljacken/master
Add fancy truncation of type hints.
Diffstat (limited to 'crates/ra_lsp_server/src/main_loop')
-rw-r--r-- | crates/ra_lsp_server/src/main_loop/handlers.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_lsp_server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs index 0461bf385..e552f2106 100644 --- a/crates/ra_lsp_server/src/main_loop/handlers.rs +++ b/crates/ra_lsp_server/src/main_loop/handlers.rs | |||
@@ -888,7 +888,7 @@ pub fn handle_inlay_hints( | |||
888 | let analysis = world.analysis(); | 888 | let analysis = world.analysis(); |
889 | let line_index = analysis.file_line_index(file_id)?; | 889 | let line_index = analysis.file_line_index(file_id)?; |
890 | Ok(analysis | 890 | Ok(analysis |
891 | .inlay_hints(file_id)? | 891 | .inlay_hints(file_id, world.options.max_inlay_hint_length)? |
892 | .into_iter() | 892 | .into_iter() |
893 | .map(|api_type| InlayHint { | 893 | .map(|api_type| InlayHint { |
894 | label: api_type.label.to_string(), | 894 | label: api_type.label.to_string(), |