summaryrefslogtreecommitdiff
path: root/script-beta
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-05 11:11:13 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-05 11:11:13 +0800
commit2f88316f4431dab4ad5170748ddb4d8456c1ba1a (patch)
tree6b0628f882f79ab87ac51d01570a96dcbed996bb /script-beta
parent5e2226552e68368023b88c240e5ffefec6e0c760 (diff)
downloadlua-language-server-2f88316f4431dab4ad5170748ddb4d8456c1ba1a.zip
修正一些问题
Diffstat (limited to 'script-beta')
-rw-r--r--script-beta/parser/guide.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script-beta/parser/guide.lua b/script-beta/parser/guide.lua
index 7e1bc278..8893c81d 100644
--- a/script-beta/parser/guide.lua
+++ b/script-beta/parser/guide.lua
@@ -2617,6 +2617,9 @@ end
function m.getDocTypeNames(status, doc, genericCallback)
local results = {}
+ if not doc then
+ return results
+ end
for _, unit in ipairs(doc.types) do
local typeName = getDocTypeUnitName(status, unit, genericCallback)
results[#results+1] = {