Add hover config linksInHover to suppress links

This commit is contained in:
flw 2020-09-26 13:02:09 +08:00
parent 18c62c8a39
commit e73ee9dfa2
No known key found for this signature in database
GPG key ID: C7CD7A7DE96BD7C2
5 changed files with 149 additions and 13 deletions

View file

@ -370,8 +370,12 @@ impl Analysis {
}
/// Returns a short text describing element at position.
pub fn hover(&self, position: FilePosition) -> Cancelable<Option<RangeInfo<HoverResult>>> {
self.with_db(|db| hover::hover(db, position))
pub fn hover(
&self,
position: FilePosition,
links_in_hover: bool,
) -> Cancelable<Option<RangeInfo<HoverResult>>> {
self.with_db(|db| hover::hover(db, position, links_in_hover))
}
/// Computes parameter information for the given call expression.