summaryrefslogtreecommitdiff
path: root/script/core/hint.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/hint.lua')
-rw-r--r--script/core/hint.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/core/hint.lua b/script/core/hint.lua
index 3b5db3e5..51842126 100644
--- a/script/core/hint.lua
+++ b/script/core/hint.lua
@@ -41,8 +41,9 @@ local function typeHint(uri, results, start, finish)
end
end
await.delay()
- local view = infer.viewType(source)
+ local view = infer.getInfer(source):view()
if view == 'any'
+ or view == 'unknown'
or view == 'nil' then
return
end