A completion suggestion for use by the IDE language tools.

This is a JS-exposed model type (`dh.lsp.CompletionItem`) that closely follows the Language Server Protocol completion item shape.

Hierarchy

  • CompletionItem

Constructors

Properties

additionalTextEdits: TextEdit[]

Additional edits to apply when this completion item is accepted.

commitCharacters: string[]

Characters that commit this completion item if typed.

deprecated: boolean

Whether this completion item is deprecated.

detail: string

Additional detail text to display alongside dh.lsp.label.

documentation: MarkupContent

Documentation for this completion item.

filterText: string

Filter text used to match this completion item against a query.

insertTextFormat: number

The insert text format (for example, plain text vs snippet), represented as an integer.

kind: number

The kind of completion item (for example, method, variable, keyword), represented as an integer.

label: string

The primary label to display for this completion item.

preselect: boolean

Whether this completion item should be preselected in completion UI.

sortText: string

Sort text for ordering completion items.

textEdit: TextEdit

The edit to apply to the document when this completion item is accepted.