parent
f27b21cb52
commit
4dbde8211c
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ export function convertCompletionEntry(
|
||||||
if (tsEntry.kindModifiers) {
|
if (tsEntry.kindModifiers) {
|
||||||
const kindModifiers = new Set(tsEntry.kindModifiers.split(/,|\s+/g))
|
const kindModifiers = new Set(tsEntry.kindModifiers.split(/,|\s+/g))
|
||||||
if (kindModifiers.has(PConst.KindModifiers.optional)) {
|
if (kindModifiers.has(PConst.KindModifiers.optional)) {
|
||||||
insertText = label
|
insertText = insertText ?? label
|
||||||
label += '?'
|
label += '?'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue