summaryrefslogtreecommitdiff
path: root/script/vm/global.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-18 20:05:37 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-18 20:05:37 +0800
commit1a6e21031ba029dcff7ae4efd0b8649ba8908c77 (patch)
tree1b19a05e4d7c569c770e89e026aa485f577889aa /script/vm/global.lua
parent4d1a35d31bf5534a7f717b44ff0a71a2885611f2 (diff)
downloadlua-language-server-1a6e21031ba029dcff7ae4efd0b8649ba8908c77.zip
#1255 hover for `doc.enum`
Diffstat (limited to 'script/vm/global.lua')
-rw-r--r--script/vm/global.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/vm/global.lua b/script/vm/global.lua
index d9509fe7..c9bb4cc7 100644
--- a/script/vm/global.lua
+++ b/script/vm/global.lua
@@ -331,8 +331,8 @@ local compilerGlobalSwitch = util.switch()
enum:addSet(uri, source)
source._globalNode = enum
- local tbl = source.bindSource and source.bindSource.value
- if not tbl or tbl.type ~= 'table' then
+ local tbl = source.bindSource
+ if not tbl then
return
end
source._enums = {}