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: JsAny, range: Range = definedExternally, command: Command = definedExternally)

Creates a new inline completion item.

Properties

Link copied to clipboard

An optional Command that is executed after inserting this completion.

Link copied to clipboard

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

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

Link copied to clipboard
var range: Range?

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