From 9dc9f5bd6af79793b616109a67689277265489d2 Mon Sep 17 00:00:00 2001 From: Qiming Zhao Date: Wed, 6 Apr 2022 15:57:51 +0800 Subject: [PATCH] repsect isSnippet from CompletionEntry Closes #362 --- src/server/utils/completionItem.ts | 3 +++ 1 file changed, 3 insertions(+) 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) {