Set the `documentation` field on a `CompletionItem` from a markdown string, if non-empty.
(item: &mut CompletionItem, markdown: String)
| 86 | /// Set the `documentation` field on a `CompletionItem` from a markdown |
| 87 | /// string, if non-empty. |
| 88 | fn set_documentation(item: &mut CompletionItem, markdown: String) { |
| 89 | item.documentation = Some(Documentation::MarkupContent(MarkupContent { |
| 90 | kind: MarkupKind::Markdown, |
| 91 | value: markdown, |
| 92 | })); |
| 93 | } |
| 94 | |
| 95 | impl Backend { |
| 96 | /// Handle `completionItem/resolve` by populating the `documentation` |
no outgoing calls
no test coverage detected