feat: Extend the server with the hover_range capability

This commit is contained in:
Alexander Gonzalez 2021-07-22 22:08:28 -04:00
parent 6a2a0b7abb
commit 20c64cc0e6
4 changed files with 44 additions and 6 deletions

View file

@ -423,6 +423,15 @@ impl Analysis {
self.with_db(|db| hover::hover(db, position, config))
}
/// Returns a short text displaying the type for the expression.
pub fn hover_range(
&self,
config: &HoverConfig,
range: FileRange,
) -> Cancellable<Option<RangeInfo<HoverResult>>> {
self.with_db(|db| hover::hover_range(db, range, config))
}
/// Return URL(s) for the documentation of the symbol under the cursor.
pub fn external_docs(
&self,