summaryrefslogtreecommitdiff
path: root/server/src/matcher/hover.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-27 10:30:59 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-27 10:30:59 +0800
commit5cf122870c659821929449d64bfc24d5913dbd77 (patch)
tree4a97f3ba09795033599148ddf66863ef70f1e550 /server/src/matcher/hover.lua
parentc396fb4527a5684b75672654f28208255954edcf (diff)
downloadlua-language-server-5cf122870c659821929449d64bfc24d5913dbd77.zip
hover过滤掉脏对象
Diffstat (limited to 'server/src/matcher/hover.lua')
-rw-r--r--server/src/matcher/hover.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/src/matcher/hover.lua b/server/src/matcher/hover.lua
index 09b2e071..de2eeffb 100644
--- a/server/src/matcher/hover.lua
+++ b/server/src/matcher/hover.lua
@@ -399,6 +399,10 @@ return function (result, source, lsp, select)
return
end
+ if result.key == '' then
+ return
+ end
+
if result.type == 'string' then
return getStringHover(result, lsp)
end