Fixes #137000. SelectedCompletionInfo now has the members completionKind and isSnippetText.

This commit is contained in:
Henning Dieterichs
2021-11-23 15:30:55 +01:00
parent 0231d1aa45
commit 075ba020e8
6 changed files with 63 additions and 24 deletions

View File

@@ -1042,7 +1042,9 @@ class InlineCompletionAdapter {
context.selectedSuggestionInfo
? {
range: typeConvert.Range.to(context.selectedSuggestionInfo.range),
text: context.selectedSuggestionInfo.text
text: context.selectedSuggestionInfo.text,
isSnippetText: context.selectedSuggestionInfo.isSnippetText,
completionKind: typeConvert.CompletionItemKind.to(context.selectedSuggestionInfo.completionKind),
}
: undefined,
triggerKind: context.triggerKind