Completion

data class Completion(val label: String, val kind: CompletionKind, val detail: String? = null, val documentationMarkdown: String? = null, val insertionSnippet: String? = null)

A completion proposal.

Parameters

label

the text displayed in the completion list

kind

the role of the completion

detail

a short additional note (e.g. the module name, or required)

documentationMarkdown

the documentation of the completed element, in Markdown

insertionSnippet

the snippet to insert when the completion is accepted, with tab-stop placeholders, or null to insert label

Constructors

Link copied to clipboard
constructor(label: String, kind: CompletionKind, detail: String? = null, documentationMarkdown: String? = null, insertionSnippet: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun Completion.toLsp4j(): CompletionItem