diff options
author | sumneko <sumneko@hotmail.com> | 2019-06-03 11:00:18 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-06-03 11:00:18 +0800 |
commit | 89b5d63a2baad1f13d7d7abd2e1986da2625cfc7 (patch) | |
tree | 5739233ab2f2a21feca077ce1a47c334c28ea64f /server | |
parent | 8b9e70e10d2b9c60c647b9d9d3de96a384aacbfc (diff) | |
download | lua-language-server-89b5d63a2baad1f13d7d7abd2e1986da2625cfc7.zip |
修正报错
Diffstat (limited to 'server')
-rw-r--r-- | server/src/core/definition.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/core/definition.lua b/server/src/core/definition.lua index c8b0d116..8680a29b 100644 --- a/server/src/core/definition.lua +++ b/server/src/core/definition.lua @@ -51,6 +51,9 @@ local function parseLocal(callback, vm, source) end local function parseValueByValue(callback, vm, source, value) + if not source then + return + end local mark = { [vm] = true } local list = {} for _ = 1, 5 do |