aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/lib.rs
diff options
context:
space:
mode:
authorZac Pullar-Strecker <[email protected]>2020-06-09 04:43:57 +0100
committerZac Pullar-Strecker <[email protected]>2020-06-30 09:02:46 +0100
commit2023af53f09ed9466c6d7442d6830276eba19b45 (patch)
tree84924a0e47a70b0255b1811f127147e9a9d92682 /crates/ra_ide/src/lib.rs
parent2bd717139918e15e537dcd833bb003e85d24b3d1 (diff)
Hover doc link rewriting
Diffstat (limited to 'crates/ra_ide/src/lib.rs')
-rw-r--r--crates/ra_ide/src/lib.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/ra_ide/src/lib.rs b/crates/ra_ide/src/lib.rs
index ecac5134e..d56d52d30 100644
--- a/crates/ra_ide/src/lib.rs
+++ b/crates/ra_ide/src/lib.rs
@@ -54,6 +54,7 @@ use ra_ide_db::{
54 LineIndexDatabase, 54 LineIndexDatabase,
55}; 55};
56use ra_syntax::{SourceFile, TextRange, TextSize}; 56use ra_syntax::{SourceFile, TextRange, TextSize};
57use ra_project_model::ProjectWorkspace;
57 58
58use crate::display::ToNav; 59use crate::display::ToNav;
59 60
@@ -389,8 +390,8 @@ impl Analysis {
389 } 390 }
390 391
391 /// Returns a short text describing element at position. 392 /// Returns a short text describing element at position.
392 pub fn hover(&self, position: FilePosition) -> Cancelable<Option<RangeInfo<HoverResult>>> { 393 pub fn hover(&self, position: FilePosition, workspaces: Arc<Vec<ProjectWorkspace>>) -> Cancelable<Option<RangeInfo<HoverResult>>> {
393 self.with_db(|db| hover::hover(db, position)) 394 self.with_db(|db| hover::hover(db, position, workspaces))
394 } 395 }
395 396
396 /// Computes parameter information for the given call expression. 397 /// Computes parameter information for the given call expression.