summaryrefslogtreecommitdiff
path: root/script/core/diagnostics/undefined-field.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-07 03:34:53 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-07 03:34:53 +0800
commitafaf9114d2ea37b1567b6e09ab018ae594f88e08 (patch)
tree5f8926da709b91a86f9d857e36641f72aaface20 /script/core/diagnostics/undefined-field.lua
parentd45984a61c94447c7c55ff5efffa9209c0b98d7c (diff)
downloadlua-language-server-afaf9114d2ea37b1567b6e09ab018ae594f88e08.zip
update
Diffstat (limited to 'script/core/diagnostics/undefined-field.lua')
-rw-r--r--script/core/diagnostics/undefined-field.lua12
1 files changed, 0 insertions, 12 deletions
diff --git a/script/core/diagnostics/undefined-field.lua b/script/core/diagnostics/undefined-field.lua
index ea15dcda..03fedb7b 100644
--- a/script/core/diagnostics/undefined-field.lua
+++ b/script/core/diagnostics/undefined-field.lua
@@ -24,22 +24,11 @@ return function (uri, callback)
return
end
- local cache = {}
-
---@async
local function checkUndefinedField(src)
- local id = noder.getID(src)
- if not id then
- return
- end
- if cache[id] then
- return
- end
-
await.delay()
if #vm.getDefs(src) > 0 then
- cache[id] = true
return
end
local node = src.node
@@ -54,7 +43,6 @@ return function (uri, callback)
end
end
if not ok then
- cache[id] = true
return
end
end