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