summaryrefslogtreecommitdiff
path: root/script/vm/global.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-07-21 15:13:30 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-07-21 15:13:30 +0800
commit7c636357622b7b20e9729c902b5682a05995b911 (patch)
treeae04496840f3c0b449cf11c8fc0f71c6bf08ae03 /script/vm/global.lua
parent998927a2c8f33dabf8b079657f111a03f37570af (diff)
downloadlua-language-server-7c636357622b7b20e9729c902b5682a05995b911.zip
fix missing fields
Diffstat (limited to 'script/vm/global.lua')
-rw-r--r--script/vm/global.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/vm/global.lua b/script/vm/global.lua
index 6b61a82a..4e2d0617 100644
--- a/script/vm/global.lua
+++ b/script/vm/global.lua
@@ -621,6 +621,7 @@ function vm.getGlobalBase(source)
end
local name = global:asKeyName()
if not root._globalBaseMap[name] then
+ ---@diagnostic disable-next-line: missing-fields
root._globalBaseMap[name] = {
type = 'globalbase',
parent = root,