mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Make documentation on hover configurable
This commit is contained in:
parent
388a91c8a8
commit
a93d166f0f
6 changed files with 125 additions and 113 deletions
|
@ -407,9 +407,10 @@ impl Analysis {
|
|||
&self,
|
||||
position: FilePosition,
|
||||
links_in_hover: bool,
|
||||
documentation: bool,
|
||||
markdown: bool,
|
||||
) -> Cancellable<Option<RangeInfo<HoverResult>>> {
|
||||
self.with_db(|db| hover::hover(db, position, links_in_hover, markdown))
|
||||
self.with_db(|db| hover::hover(db, position, links_in_hover, documentation, markdown))
|
||||
}
|
||||
|
||||
/// Return URL(s) for the documentation of the symbol under the cursor.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue