repsect isSnippet from CompletionEntry

Closes #362
This commit is contained in:
Qiming Zhao 2022-04-06 15:57:51 +08:00
parent 3448f5237a
commit 9dc9f5bd6a
No known key found for this signature in database
GPG key ID: 9722CD0E8D4DCB8C

View file

@ -59,6 +59,9 @@ export function convertCompletionEntry(
insertText = label
insertTextFormat = InsertTextFormat.Snippet
}
if (tsEntry.isSnippet) {
insertTextFormat = InsertTextFormat.Snippet
}
let textEdit: TextEdit | null = null
if (tsEntry.replacementSpan) {