mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Add hover config linksInHover
to suppress links
This commit is contained in:
parent
18c62c8a39
commit
e73ee9dfa2
5 changed files with 149 additions and 13 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue