diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-30 01:33:39 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-30 01:33:39 +0800 |
commit | 457990e081a84b0aec2448ad23a00f5b95f1e457 (patch) | |
tree | 128ac285c1f1d41304e9ee282da59eb3b5fd3609 /script/core/diagnostics/need-check-nil.lua | |
parent | b09404bb037f50e5fdba9eecfe0e55c9e12faa6f (diff) | |
download | lua-language-server-457990e081a84b0aec2448ad23a00f5b95f1e457.zip |
add many delays in diagnostics
Diffstat (limited to 'script/core/diagnostics/need-check-nil.lua')
-rw-r--r-- | script/core/diagnostics/need-check-nil.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/script/core/diagnostics/need-check-nil.lua b/script/core/diagnostics/need-check-nil.lua index 867d0135..9c86939a 100644 --- a/script/core/diagnostics/need-check-nil.lua +++ b/script/core/diagnostics/need-check-nil.lua @@ -2,14 +2,18 @@ local files = require 'files' local guide = require 'parser.guide' local vm = require 'vm' local lang = require 'language' +local await = require 'await' +---@async return function (uri, callback) local state = files.getState(uri) if not state then return end + ---@async guide.eachSourceType(state.ast, 'getlocal', function (src) + await.delay() local checkNil local nxt = src.next if nxt then |