diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-07 03:34:53 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-07 03:34:53 +0800 |
commit | afaf9114d2ea37b1567b6e09ab018ae594f88e08 (patch) | |
tree | 5f8926da709b91a86f9d857e36641f72aaface20 /script/core/diagnostics/undefined-field.lua | |
parent | d45984a61c94447c7c55ff5efffa9209c0b98d7c (diff) | |
download | lua-language-server-afaf9114d2ea37b1567b6e09ab018ae594f88e08.zip |
update
Diffstat (limited to 'script/core/diagnostics/undefined-field.lua')
-rw-r--r-- | script/core/diagnostics/undefined-field.lua | 12 |
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 |