summaryrefslogtreecommitdiff
path: root/server/src/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-12 11:22:54 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-12 11:22:54 +0800
commit650f1982d237282fecac43ba6362ec75302d91a1 (patch)
tree2741248f20cd0cb6221eb97ce389d87f590b356b /server/src/core
parenta25cadd79397ae17dc66d954a2482bf71cc6ecc2 (diff)
downloadlua-language-server-650f1982d237282fecac43ba6362ec75302d91a1.zip
修正一个报错
Diffstat (limited to 'server/src/core')
-rw-r--r--server/src/core/hover/name.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/core/hover/name.lua b/server/src/core/hover/name.lua
index 4419e4b5..bd35f946 100644
--- a/server/src/core/hover/name.lua
+++ b/server/src/core/hover/name.lua
@@ -5,7 +5,7 @@ return function (source)
end
local func = value:getFunction()
local declarat
- if func then
+ if func and func.source then
declarat = func.source.name
else
declarat = source