Skip to content

Commit a5c24f2

Browse files
committed
fix
1 parent 8c4c122 commit a5c24f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

script/core/completion/completion.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1588,7 +1588,8 @@ local function checkTableLiteralField(state, position, tbl, fields, results)
15881588
}
15891589
end),
15901590
}
1591-
if field.optional then
1591+
if field.optional
1592+
or vm.compileNode(field):isNullable() then
15921593
res.insertText = res.label
15931594
res.label = res.label.. '?'
15941595
end

0 commit comments

Comments
 (0)