Interface InlineCompletion
interface InlineCompletion {
additionalTextEdits?: ISingleEditOperation[];
command?: Command;
completeBracketPairs?: boolean;
correlationId?: string;
gutterMenuLinkAction?: Command;
hint?: InlineCompletionHint;
insertText: string | { snippet: string };
isInlineEdit?: boolean;
range?: IRange;
showInlineEditMenu?: boolean;
shownCommand?: Command;
showRange?: IRange;
uri?: UriComponents;
warning?: InlineCompletionWarning;
}Properties§
readonly additional Text Edits?: ISingleEditOperation[]readonly command?: CommandA command that is run upon acceptance of this item.
readonly complete Bracket Pairs?: booleanIf set to true, unopened closing brackets are removed and unclosed opening brackets are closed.
Defaults to false.
readonly correlation Id?: stringUsed for telemetry.
readonly hint?: InlineCompletionHint§readonly insert Text: string | { snippet: string }The text to insert. If the text contains a line break, the range must end at the end of a line. If existing text should be replaced, the existing text must be a prefix of the text to insert.
The text can also be a snippet. In that case, a preview with default parameters is shown. When accepting the suggestion, the full snippet is inserted.
readonly is Inline Edit?: boolean§readonly range?: IRangeThe range to replace.
Must begin and end on the same line.
Refers to the current document or uri if provided.
readonly shown Command?: CommandIs called the first time an inline completion is shown.
@deprecated. Use onDidShow of the provider instead.
readonly show Range?: IRangeOnly show the inline suggestion when the cursor is in the showRange.
readonly uri?: UriComponentsThe file for which the edit applies to.
readonly warning?: InlineCompletionWarning
An optional array of additional text edits that are applied when selecting this completion. Edits must not overlap with the main edit nor with themselves. Refers to the current document or
uriif provided.