mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
format in to_proto::markup_content
Signed-off-by: JmPotato <ghzpotato@gmail.com>
This commit is contained in:
parent
8a57afe5a4
commit
3f2bc813d3
2 changed files with 33 additions and 1 deletions
|
@ -755,7 +755,8 @@ pub(crate) fn runnable(
|
|||
}
|
||||
|
||||
pub(crate) fn markup_content(markup: Markup) -> lsp_types::MarkupContent {
|
||||
lsp_types::MarkupContent { kind: lsp_types::MarkupKind::Markdown, value: markup.into() }
|
||||
let value = crate::markdown::format_docs(markup.as_str());
|
||||
lsp_types::MarkupContent { kind: lsp_types::MarkupKind::Markdown, value }
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue