summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruhziel <uhziel@gmail.com>2020-12-15 14:57:40 +0800
committeruhziel <uhziel@gmail.com>2020-12-15 14:57:40 +0800
commit94190afdc01a1671964556fd22cac86f62bd2b30 (patch)
tree3c1c3478ff03753a8e2ae4fecb668e3efee279a4
parent8e55293116809cd46c9f3dce7c972e8ee77af840 (diff)
downloadlua-language-server-94190afdc01a1671964556fd22cac86f62bd2b30.zip
还是去除 deep=0
如果遇到误报,可以类似这么处理https://github.com/sumneko/lua-language-server/commit/26eee0fc222c855b443e6f8f0ec7a7653ad3e256
-rw-r--r--script/core/diagnostics/undefined-field.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/diagnostics/undefined-field.lua b/script/core/diagnostics/undefined-field.lua
index 499b2ffe..106a2f1c 100644
--- a/script/core/diagnostics/undefined-field.lua
+++ b/script/core/diagnostics/undefined-field.lua
@@ -53,7 +53,7 @@ return function (uri, callback)
local fields = {}
local empty = true
for _, docClass in ipairs(allDocClass) do
- local refs = vm.getFields(docClass, 0)
+ local refs = vm.getFields(docClass)
for _, ref in ipairs(refs) do
if ref.type == 'getfield' or ref.type == 'getmethod' then