aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src/main_loop
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-02-27 11:50:38 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-02-27 11:50:38 +0000
commit1927eb088ac9aa3851f77bb929296873ccb4faed (patch)
treeaf3c0a5ea5a11a2998d12f61044be4c3e150d1e9 /crates/ra_lsp_server/src/main_loop
parentc8e78809e5a300f3c2770f50b6d8b1c4bff11531 (diff)
parente3525527e35219e38e811b572406e14119853716 (diff)
Merge #901
901: Add basic support for showing fn signature when hovering r=matklad a=vipentti This adds basic support for displaying function signature when hovering over a usage of a function. Additionally refactored `hover` to return `HoverResult` to ease with testing and in general to be more robust. Co-authored-by: Ville Penttinen <[email protected]>
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 };