diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-02-27 11:50:38 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-02-27 11:50:38 +0000 |
commit | 1927eb088ac9aa3851f77bb929296873ccb4faed (patch) | |
tree | af3c0a5ea5a11a2998d12f61044be4c3e150d1e9 /crates/ra_lsp_server/src/main_loop | |
parent | c8e78809e5a300f3c2770f50b6d8b1c4bff11531 (diff) | |
parent | e3525527e35219e38e811b572406e14119853716 (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.rs | 2 |
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 | }; |