From 6aaf6851ac2e85fc9b01c3a04caec00aede0f747 Mon Sep 17 00:00:00 2001 From: Henning Dieterichs Date: Thu, 17 Mar 2022 17:45:22 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/vs/editor/common/languages.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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.