diff options
Diffstat (limited to 'crates/ra_ide/src/lib.rs')
-rw-r--r-- | crates/ra_ide/src/lib.rs | 5 |
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 | }; |
56 | use ra_syntax::{SourceFile, TextRange, TextSize}; | 56 | use ra_syntax::{SourceFile, TextRange, TextSize}; |
57 | use ra_project_model::ProjectWorkspace; | ||
57 | 58 | ||
58 | use crate::display::ToNav; | 59 | use 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. |