diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-05 14:58:32 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-05 14:58:32 +0800 |
commit | 4faf234224537a71a5f0ead902079ecb1b0d2044 (patch) | |
tree | bf2fdad621f875d38156d63ec06723ef7d01b736 /script-beta | |
parent | cc7eb35294d2dd936bd133cafbca972f33db00f5 (diff) | |
download | lua-language-server-4faf234224537a71a5f0ead902079ecb1b0d2044.zip |
在诊断前 delay 一次
Diffstat (limited to 'script-beta')
-rw-r--r-- | script-beta/provider/diagnostic.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script-beta/provider/diagnostic.lua b/script-beta/provider/diagnostic.lua index 02cbebfb..97d6480c 100644 --- a/script-beta/provider/diagnostic.lua +++ b/script-beta/provider/diagnostic.lua @@ -153,6 +153,9 @@ function m.doDiagnostic(uri) if files.isLibrary(uri) then return end + + await.delay() + local ast = files.getAst(uri) if not ast then m.clear(uri) |