FunctionCallInsertionSnippet

Provider of function call snippets for completion, supported by the LSP.

Parameters

function

the function to generate the snippet from

Functions

Link copied to clipboard
fun forFunction(function: DocsFunction, chained: Boolean): String

Generates a snippet for the function call in the accepted format by the LSP. The snippet includes the function name and its non-optional parameters.

Link copied to clipboard
fun forParameter(parameter: DocsParameter, alwaysNamed: Boolean, insertionIndex: Int = 1, insertionPlaceholder: String = ""): String

Generates a snippet for a function parameter in the accepted format by the LSP. The snippet handles three cases: