MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / set_documentation

Function set_documentation

src/completion/resolve.rs:88–93  ·  view source on GitHub ↗

Set the `documentation` field on a `CompletionItem` from a markdown string, if non-empty.

(item: &mut CompletionItem, markdown: String)

Source from the content-addressed store, hash-verified

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

Callers 4

resolve_memberMethod · 0.85
resolve_functionMethod · 0.85
resolve_classMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected