summaryrefslogtreecommitdiff
path: root/server/src/core/definition.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-29 13:46:28 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-29 13:46:28 +0800
commitcc33507654fa35640118b13bdd3f19696631980a (patch)
tree636cad7ea765a4439d9655dcf9cba39f3f68e17c /server/src/core/definition.lua
parent9c2843279fb04b75169057c3d81a93ce87ebcf34 (diff)
downloadlua-language-server-cc33507654fa35640118b13bdd3f19696631980a.zip
尽量不合并value
Diffstat (limited to 'server/src/core/definition.lua')
-rw-r--r--server/src/core/definition.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/core/definition.lua b/server/src/core/definition.lua
index b348a386..e41c6727 100644
--- a/server/src/core/definition.lua
+++ b/server/src/core/definition.lua
@@ -105,7 +105,7 @@ local function parseLocal(vm, source, lsp)
return positions
end
local value = source:bindValue()
- if value.uri ~= '' and value.uri ~= vm.uri then
+ if value and value.uri ~= '' and value.uri ~= vm.uri then
return parseValueCrossFile(vm, source, lsp)
end
positions[#positions+1] = {