diff --git a/src/server/utils/completionItem.ts b/src/server/utils/completionItem.ts index 0bd8ab4..4c2f920 100644 --- a/src/server/utils/completionItem.ts +++ b/src/server/utils/completionItem.ts @@ -76,7 +76,7 @@ export function convertCompletionEntry( if (tsEntry.kindModifiers) { const kindModifiers = new Set(tsEntry.kindModifiers.split(/,|\s+/g)) if (kindModifiers.has(PConst.KindModifiers.optional)) { - insertText = label + insertText = insertText ?? label label += '?' }