aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src/main_loop
diff options
context:
space:
mode:
authorVille Penttinen <[email protected]>2019-02-26 16:56:04 +0000
committerVille Penttinen <[email protected]>2019-02-26 17:30:17 +0000
commit6f5fd6c9de07a2bcc315acae59845ffb79990bc5 (patch)
treee57fb232aa4d4f22c04da309853548c1bb1acc56 /crates/ra_lsp_server/src/main_loop
parent3ec25841488f9d4325ec25d737c488c18419787c (diff)
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.
Diffstat (limited to 'crates/ra_lsp_server/src/main_loop')
-rw-r--r--crates/ra_lsp_server/src/main_loop/handlers.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_lsp_server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs
index 5da731801..dce6fcc67 100644
--- a/crates/ra_lsp_server/src/main_loop/handlers.rs
+++ b/crates/ra_lsp_server/src/main_loop/handlers.rs
@@ -441,7 +441,7 @@ pub fn handle_hover(
441 let res = Hover { 441 let res = Hover {
442 contents: HoverContents::Markup(MarkupContent { 442 contents: HoverContents::Markup(MarkupContent {
443 kind: MarkupKind::Markdown, 443 kind: MarkupKind::Markdown,
444 value: info.info, 444 value: info.info.to_markup(),
445 }), 445 }),
446 range: Some(range), 446 range: Some(range),
447 }; 447 };