diff options
Diffstat (limited to 'src/vs/workbench/api/common/extHostTypes.ts')
-rw-r--r-- | src/vs/workbench/api/common/extHostTypes.ts | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/vs/workbench/api/common/extHostTypes.ts b/src/vs/workbench/api/common/extHostTypes.ts index ca19cdc010c..a69e00f05ec 100644 --- a/src/vs/workbench/api/common/extHostTypes.ts +++ b/src/vs/workbench/api/common/extHostTypes.ts @@ -1594,7 +1594,10 @@ export class CompletionList { @es5ClassCompat export class InlineSuggestion implements vscode.InlineCompletionItem { - insertText?: string; + + insertText?: string | SnippetString; + + filterText?: string; /** * @deprecated Use `insertText` instead. Will be removed eventually. @@ -1604,7 +1607,7 @@ export class InlineSuggestion implements vscode.InlineCompletionItem { range?: Range; command?: vscode.Command; - constructor(insertText: string, range?: Range, command?: vscode.Command) { + constructor(insertText: string | SnippetString, range?: Range, command?: vscode.Command) { this.insertText = insertText; this.range = range; this.command = command; @@ -1640,8 +1643,11 @@ export class InlineSuggestionNew implements vscode.InlineCompletionItemNew { export class InlineSuggestionsNew implements vscode.InlineCompletionListNew { items: vscode.InlineCompletionItemNew[]; - constructor(items: vscode.InlineCompletionItemNew[]) { + commands: vscode.Command[] | undefined; + + constructor(items: vscode.InlineCompletionItemNew[], commands?: vscode.Command[]) { this.items = items; + this.commands = commands; } } |