Adds support for snippets in inline completions (fixes #138260)

This commit is contained in:
Henning Dieterichs
2022-03-02 16:02:51 +01:00
parent c468903ff7
commit 5f8dacf8a2
11 changed files with 84 additions and 18 deletions

View File

@@ -1083,7 +1083,7 @@ class InlineCompletionAdapter {
throw new Error('text or insertText must be defined');
}
return ({
text: insertText,
text: typeof insertText === 'string' ? insertText : { snippet: insertText.value },
range: item.range ? typeConvert.Range.from(item.range) : undefined,
command,
idx: idx,