toCompletionItem
Converts a DocumentedFunction to a CompletionItem for use in function name completion.
Parameters
function
the documented function to convert
chained
whether the function is chained call, hence the first parameter should not be included in the snippet
Converts a DocsParameter to a CompletionItem for use in parameter name completion.
Converts a generic string value, such as an allowed value for a parameter, to a CompletionItem.