summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-02-01 15:14:07 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-02-01 15:14:07 +0800
commiteae05d288db3c668aa1d9324b6cb6b07ddadf303 (patch)
treecfe5459f13c4d25c94d5281f527862830e2ae08a /script
parent077059a706cb082cf9ba747e80a0e45dd5b1cafb (diff)
downloadlua-language-server-eae05d288db3c668aa1d9324b6cb6b07ddadf303.zip
not nil
Diffstat (limited to 'script')
-rw-r--r--script/config.lua2
-rw-r--r--script/core/hint.lua3
2 files changed, 3 insertions, 2 deletions
diff --git a/script/config.lua b/script/config.lua
index 96e25ea3..7bd34357 100644
--- a/script/config.lua
+++ b/script/config.lua
@@ -157,7 +157,7 @@ local ConfigTemplate = {
hint = {
enable = {true, Boolean},
paramType = {true, Boolean},
- setType = {false, Boolean},
+ setType = {true, Boolean},
paramName = {true, Boolean},
},
intelliSense = {
diff --git a/script/core/hint.lua b/script/core/hint.lua
index 008349ad..3f97586e 100644
--- a/script/core/hint.lua
+++ b/script/core/hint.lua
@@ -34,7 +34,8 @@ local function typeHint(uri, edits, start, finish)
end
end
local infer = vm.getInferType(source, 0)
- if infer == 'any' then
+ if infer == 'any'
+ or infer == 'any' then
return
end
local src = source