diff --git a/src/server/utils/completionItem.ts b/src/server/utils/completionItem.ts index 1ccfec2..499df4a 100644 --- a/src/server/utils/completionItem.ts +++ b/src/server/utils/completionItem.ts @@ -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) {