diff options
Diffstat (limited to 'crates/ra_ide/src/lib.rs')
-rw-r--r-- | crates/ra_ide/src/lib.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crates/ra_ide/src/lib.rs b/crates/ra_ide/src/lib.rs index 779a81b2c..c3244a8dd 100644 --- a/crates/ra_ide/src/lib.rs +++ b/crates/ra_ide/src/lib.rs | |||
@@ -348,9 +348,14 @@ impl Analysis { | |||
348 | &self, | 348 | &self, |
349 | file_id: FileId, | 349 | file_id: FileId, |
350 | max_inlay_hint_length: Option<usize>, | 350 | max_inlay_hint_length: Option<usize>, |
351 | show_default_types_in_inlay_hints: bool, | ||
351 | ) -> Cancelable<Vec<InlayHint>> { | 352 | ) -> Cancelable<Vec<InlayHint>> { |
353 | let truncate_options = hir::TruncateOptions { | ||
354 | max_length: max_inlay_hint_length, | ||
355 | show_default_types: show_default_types_in_inlay_hints, | ||
356 | }; | ||
352 | self.with_db(|db| { | 357 | self.with_db(|db| { |
353 | inlay_hints::inlay_hints(db, file_id, &db.parse(file_id).tree(), max_inlay_hint_length) | 358 | inlay_hints::inlay_hints(db, file_id, &db.parse(file_id).tree(), &truncate_options) |
354 | }) | 359 | }) |
355 | } | 360 | } |
356 | 361 | ||