Extract the markdown string from a `Hover` value. The hover methods always produce `HoverContents::Markup`, so this just unwraps the inner `MarkupContent::value`.
(hover: Hover)
| 77 | /// The hover methods always produce `HoverContents::Markup`, so this |
| 78 | /// just unwraps the inner `MarkupContent::value`. |
| 79 | fn extract_hover_markdown(hover: Hover) -> Option<String> { |
| 80 | match hover.contents { |
| 81 | HoverContents::Markup(mc) => Some(mc.value), |
| 82 | _ => None, |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | /// Set the `documentation` field on a `CompletionItem` from a markdown |
| 87 | /// string, if non-empty. |
no outgoing calls
no test coverage detected