summaryrefslogtreecommitdiff
path: root/script/core/infer.lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2021-12-02 22:16:18 +0800
committersumneko <sumneko@hotmail.com>2021-12-02 22:16:18 +0800
commitc47baf932309a05673b7931fdf6a1be207fb7bc4 (patch)
tree2869d38a1472045ee9075083d14ca31ae6b35dd1 /script/core/infer.lua
parentb6da7274e8fa773183146982f8864247bb33a214 (diff)
parentcb2042160865589b5534a6bf0b6c366ae4ab1d99 (diff)
downloadlua-language-server-c47baf932309a05673b7931fdf6a1be207fb7bc4.zip
Merge remote-tracking branch 'origin/master' into multi-workspace
Diffstat (limited to 'script/core/infer.lua')
-rw-r--r--script/core/infer.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/script/core/infer.lua b/script/core/infer.lua
index a17d4faa..9166168b 100644
--- a/script/core/infer.lua
+++ b/script/core/infer.lua
@@ -598,6 +598,10 @@ function m.searchAndViewInfers(source, field, mark)
end
local infers = m.searchInfers(source, field, mark)
local view = m.viewInfers(infers)
+ if type(view) == 'boolean' then
+ log.error('Why view is boolean?', util.dump(infers))
+ return 'any'
+ end
return view
end