diff --git a/src/vs/editor/common/languages.ts b/src/vs/editor/common/languages.ts index c33d95fff30..3717ce626f1 100644 --- a/src/vs/editor/common/languages.ts +++ b/src/vs/editor/common/languages.ts @@ -782,9 +782,6 @@ export interface SelectedSuggestionInfo { } export interface InlineCompletion { - - readonly filterText?: string; - /** * The text to insert. * If the text contains a line break, the range must end at the end of a line. @@ -795,6 +792,12 @@ export interface InlineCompletion { */ readonly insertText: string | { snippet: string }; + /** + * A text that is used to decide if this inline completion should be shown. + * An inline completion is shown if the text to replace is a subword of the filter text. + */ + readonly filterText?: string; + /** * The range to replace. * Must begin and end on the same line.