summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-19 17:29:39 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-19 17:29:39 +0800
commit6e74a3935534f4dba252d78463cfcb11620cecbc (patch)
tree95614ff0f5923453baca79874d0124c41579f103
parentcde57de5c3198de4a1faeea0451a353cb5ea5526 (diff)
downloadlua-language-server-6e74a3935534f4dba252d78463cfcb11620cecbc.zip
check nil
-rw-r--r--script/core/completion.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/completion.lua b/script/core/completion.lua
index f36b265c..dda47f4c 100644
--- a/script/core/completion.lua
+++ b/script/core/completion.lua
@@ -1343,7 +1343,7 @@ local function getCallEnumsAndFuncs(source, index, oop)
index = index - 1
end
local arg = source.args[index]
- if arg then
+ if arg and arg.extends then
return pushCallEnumsAndFuncs(vm.getDefs(arg.extends))
end
end