aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src/main_loop
diff options
context:
space:
mode:
authorJeremy Kolb <[email protected]>2019-01-30 02:39:09 +0000
committerJeremy Kolb <[email protected]>2019-01-30 02:39:09 +0000
commitb88ba007cc2631799c2334753a7de807c548685e (patch)
tree0cbc02b9f764fdd8ff26e22135af281d3cbbd57f /crates/ra_lsp_server/src/main_loop
parent48d2acb297459fb06cbb49bdce2eccb4c2591714 (diff)
Pass Documentation up to LSP and add "rust" to our codeblocks there
Diffstat (limited to 'crates/ra_lsp_server/src/main_loop')
-rw-r--r--crates/ra_lsp_server/src/main_loop/handlers.rs11
1 files changed, 4 insertions, 7 deletions
diff --git a/crates/ra_lsp_server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs
index 9478ebfb8..4f75f9a22 100644
--- a/crates/ra_lsp_server/src/main_loop/handlers.rs
+++ b/crates/ra_lsp_server/src/main_loop/handlers.rs
@@ -1,7 +1,7 @@
1use gen_lsp_server::ErrorCode; 1use gen_lsp_server::ErrorCode;
2use lsp_types::{ 2use lsp_types::{
3 CodeActionResponse, CodeLens, Command, Diagnostic, DiagnosticSeverity, 3 CodeActionResponse, CodeLens, Command, Diagnostic, DiagnosticSeverity,
4 DocumentFormattingParams, DocumentHighlight, DocumentSymbol, Documentation, FoldingRange, 4 DocumentFormattingParams, DocumentHighlight, DocumentSymbol, FoldingRange,
5 FoldingRangeKind, FoldingRangeParams, Hover, HoverContents, Location, MarkupContent, 5 FoldingRangeKind, FoldingRangeParams, Hover, HoverContents, Location, MarkupContent,
6 MarkupKind, ParameterInformation, ParameterLabel, Position, PrepareRenameResponse, Range, 6 MarkupKind, ParameterInformation, ParameterLabel, Position, PrepareRenameResponse, Range,
7 RenameParams, SignatureInformation, SymbolInformation, TextDocumentIdentifier, TextEdit, 7 RenameParams, SignatureInformation, SymbolInformation, TextDocumentIdentifier, TextEdit,
@@ -401,12 +401,9 @@ pub fn handle_signature_help(
401 documentation: None, 401 documentation: None,
402 }) 402 })
403 .collect(); 403 .collect();
404 let documentation = call_info.doc.map(|value| { 404
405 Documentation::MarkupContent(MarkupContent { 405 let documentation = call_info.doc.map(|it| it.conv());
406 kind: MarkupKind::Markdown, 406
407 value,
408 })
409 });
410 let sig_info = SignatureInformation { 407 let sig_info = SignatureInformation {
411 label: call_info.label, 408 label: call_info.label,
412 documentation, 409 documentation,