InlineCompletionItem

An inline completion item represents a text snippet that is proposed inline to complete text that is being typed.

See also

Constructors

Link copied to clipboard
constructor(insertText: String, range: Range = definedExternally, command: Command = definedExternally)

Creates a new inline completion item.

constructor(insertText: SnippetString, range: Range = definedExternally, command: Command = definedExternally)

Properties

Link copied to clipboard
external var command: Command?

An optional Command that is executed after inserting this completion.

Link copied to clipboard
external var filterText: String?

A text that is used to decide if this inline completion should be shown. When falsy the InlineCompletionItem.insertText is used.

Link copied to clipboard
external var insertText: JsAny

The text to replace the range with. Must be set. Is used both for the preview and the accept operation.

Link copied to clipboard
external var range: Range?

The range to replace. Must begin and end on the same line.