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