This commit is contained in:
Henning Dieterichs
2022-03-17 17:45:22 +01:00
parent 0efd59f319
commit 6aaf6851ac
+6 -3
View File
@@ -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.