summaryrefslogtreecommitdiff
path: root/script-beta/core/completion.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-09-08 23:35:22 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-09-08 23:35:22 +0800
commit1dfee9623937c0619b3aaf3e2139afcc14351042 (patch)
treedf7408af00187388a29b05cad9c05518256c05ed /script-beta/core/completion.lua
parent0ecd76a8ac07687e7c8a79ed2fc34a5794cc1c8f (diff)
downloadlua-language-server-1dfee9623937c0619b3aaf3e2139afcc14351042.zip
detail
Diffstat (limited to 'script-beta/core/completion.lua')
-rw-r--r--script-beta/core/completion.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/script-beta/core/completion.lua b/script-beta/core/completion.lua
index f3c330b5..24efbf7b 100644
--- a/script-beta/core/completion.lua
+++ b/script-beta/core/completion.lua
@@ -157,7 +157,12 @@ end
local function buildDetail(source)
local types = vm.getInferType(source)
- return types
+ local literals = vm.getInferLiteral(source)
+ if literals then
+ return types .. ' = ' .. literals
+ else
+ return types
+ end
end
local function buildDesc(source)