mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Add new type HoverResult to contain the results of hovering
This makes testing hovers easier as well as allows us to do more things with the results if needed.
This commit is contained in:
parent
3ec2584148
commit
6f5fd6c9de
3 changed files with 149 additions and 16 deletions
|
@ -441,7 +441,7 @@ pub fn handle_hover(
|
|||
let res = Hover {
|
||||
contents: HoverContents::Markup(MarkupContent {
|
||||
kind: MarkupKind::Markdown,
|
||||
value: info.info,
|
||||
value: info.info.to_markup(),
|
||||
}),
|
||||
range: Some(range),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue