Skip to content

Commit a824f07

Browse files
committed
remove some unused fields and make sure doc type array gets included as a compiled node
1 parent d0c242b commit a824f07

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

script/core/completion/completion.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,8 +1518,6 @@ local function tryArray(state, position, results)
15181518
if source.type ~= 'table' and (not source.parent or source.parent.type ~= 'table') then
15191519
return
15201520
end
1521-
local mark = {}
1522-
local fields = {}
15231521
local tbl = source
15241522
if source.type ~= 'table' then
15251523
tbl = source.parent

script/vm/compiler.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1285,7 +1285,7 @@ local compilerSwitch = util.switch()
12851285
if not guide.isBasicType(pn.name) then
12861286
vm.setNode(source, pn)
12871287
end
1288-
elseif pn.type == 'doc.type.table' then
1288+
elseif pn.type == 'doc.type.table' or pn.type == 'doc.type.array' then
12891289
vm.setNode(source, pn)
12901290
end
12911291
end

0 commit comments

Comments
 (0)