aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ide/src/lib.rs')
-rw-r--r--crates/ide/src/lib.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/crates/ide/src/lib.rs b/crates/ide/src/lib.rs
index 3b97e087f..4763c0aac 100644
--- a/crates/ide/src/lib.rs
+++ b/crates/ide/src/lib.rs
@@ -370,8 +370,12 @@ impl Analysis {
370 } 370 }
371 371
372 /// Returns a short text describing element at position. 372 /// Returns a short text describing element at position.
373 pub fn hover(&self, position: FilePosition) -> Cancelable<Option<RangeInfo<HoverResult>>> { 373 pub fn hover(
374 self.with_db(|db| hover::hover(db, position)) 374 &self,
375 position: FilePosition,
376 links_in_hover: bool,
377 ) -> Cancelable<Option<RangeInfo<HoverResult>>> {
378 self.with_db(|db| hover::hover(db, position, links_in_hover))
375 } 379 }
376 380
377 /// Computes parameter information for the given call expression. 381 /// Computes parameter information for the given call expression.