aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide_api/src/lib.rs')
-rw-r--r--crates/ra_ide_api/src/lib.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/lib.rs b/crates/ra_ide_api/src/lib.rs
index 110ddcd62..fcb3da90e 100644
--- a/crates/ra_ide_api/src/lib.rs
+++ b/crates/ra_ide_api/src/lib.rs
@@ -338,8 +338,14 @@ impl Analysis {
338 } 338 }
339 339
340 /// Returns a list of the places in the file where type hints can be displayed. 340 /// Returns a list of the places in the file where type hints can be displayed.
341 pub fn inlay_hints(&self, file_id: FileId) -> Cancelable<Vec<InlayHint>> { 341 pub fn inlay_hints(
342 self.with_db(|db| inlay_hints::inlay_hints(db, file_id, &db.parse(file_id).tree())) 342 &self,
343 file_id: FileId,
344 max_inlay_hint_length: Option<usize>,
345 ) -> Cancelable<Vec<InlayHint>> {
346 self.with_db(|db| {
347 inlay_hints::inlay_hints(db, file_id, &db.parse(file_id).tree(), max_inlay_hint_length)
348 })
343 } 349 }
344 350
345 /// Returns the set of folding ranges. 351 /// Returns the set of folding ranges.