diff options
Diffstat (limited to 'crates/ide/src/lib.rs')
-rw-r--r-- | crates/ide/src/lib.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crates/ide/src/lib.rs b/crates/ide/src/lib.rs index 57f3581b6..645369597 100644 --- a/crates/ide/src/lib.rs +++ b/crates/ide/src/lib.rs | |||
@@ -382,6 +382,14 @@ impl Analysis { | |||
382 | self.with_db(|db| hover::hover(db, position, links_in_hover, markdown)) | 382 | self.with_db(|db| hover::hover(db, position, links_in_hover, markdown)) |
383 | } | 383 | } |
384 | 384 | ||
385 | /// Return URL(s) for the documentation of the symbol under the cursor. | ||
386 | pub fn get_doc_url( | ||
387 | &self, | ||
388 | position: FilePosition, | ||
389 | ) -> Cancelable<Option<link_rewrite::DocumentationLink>> { | ||
390 | self.with_db(|db| link_rewrite::get_doc_url(db, &position)) | ||
391 | } | ||
392 | |||
385 | /// Computes parameter information for the given call expression. | 393 | /// Computes parameter information for the given call expression. |
386 | pub fn call_info(&self, position: FilePosition) -> Cancelable<Option<CallInfo>> { | 394 | pub fn call_info(&self, position: FilePosition) -> Cancelable<Option<CallInfo>> { |
387 | self.with_db(|db| call_info::call_info(db, position)) | 395 | self.with_db(|db| call_info::call_info(db, position)) |