fix insertText for optional completionItem
This commit is contained in:
parent
c40430420d
commit
916af592dd
1 changed files with 1 additions and 0 deletions
|
@ -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 += '?'
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue