(hover: lsp_types::Hover)
| 363 | |
| 364 | #[cfg(feature = "lsp")] |
| 365 | fn format_hover_result(hover: lsp_types::Hover) -> String { |
| 366 | match hover.contents { |
| 367 | lsp_types::HoverContents::Scalar(markup) => format_markup(markup), |
| 368 | lsp_types::HoverContents::Array(markups) => markups |
| 369 | .into_iter() |
| 370 | .map(format_markup) |
| 371 | .collect::<Vec<_>>() |
| 372 | .join("\n"), |
| 373 | lsp_types::HoverContents::Markup(content) => content.value, |
| 374 | } |
| 375 | } |
| 376 | |
| 377 | #[cfg(feature = "lsp")] |
| 378 | fn format_markup(markup: lsp_types::MarkedString) -> String { |
no test coverage detected