Interface InlineCompletionItem

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

3.18.0

interface InlineCompletionItem {
    command?: Command;
    filterText?: string;
    insertText: string | StringValue;
    range?: Range;
}

Properties

command?: Command

An optional Command that is executed after inserting this completion.

filterText?: string

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

insertText: string | StringValue

The text to replace the range with. Must be set.

range?: Range

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