From afaf9114d2ea37b1567b6e09ab018ae594f88e08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 7 Apr 2022 03:34:53 +0800 Subject: update --- script/core/diagnostics/undefined-field.lua | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'script/core/diagnostics/undefined-field.lua') 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 -- cgit v1.2.3