summaryrefslogtreecommitdiff
path: root/script/core/completion.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-06-16 20:41:24 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-06-16 20:41:24 +0800
commit23eac92eb9e6cb133336f67e104c00b9f200cb5b (patch)
tree9c1dbf9b144c8c34805123107eccb7956dcd10a3 /script/core/completion.lua
parent9c6e2784fa796777bed2d4ba17f706d2c6a0bc67 (diff)
downloadlua-language-server-23eac92eb9e6cb133336f67e104c00b9f200cb5b.zip
test performance
Diffstat (limited to 'script/core/completion.lua')
-rw-r--r--script/core/completion.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/script/core/completion.lua b/script/core/completion.lua
index 9f35c4ac..d261b302 100644
--- a/script/core/completion.lua
+++ b/script/core/completion.lua
@@ -132,6 +132,9 @@ local function buildFunctionSnip(source, value, oop)
end
local function buildDetail(source)
+ if source.type == 'dummy' then
+ return
+ end
local types = infer.searchAndViewInfers(source)
local literals = infer.searchAndViewLiterals(source)
if literals then
@@ -170,6 +173,9 @@ local function getSnip(source)
end
local function buildDesc(source)
+ if source.type == 'dummy' then
+ return
+ end
local hover = getHover.get(source)
local md = markdown()
md:add('lua', hover.label)