diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-01-27 20:14:50 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-01-27 20:14:50 +0800 |
commit | 95151f0cb92f882c959e40139abf94a4fe1ca7b8 (patch) | |
tree | 725442a537bc46a8a173a8a0a9bfc3197bb88ca1 | |
parent | 9da178541151a664dd131164bb1c7c2393da3172 (diff) | |
download | lua-language-server-95151f0cb92f882c959e40139abf94a4fe1ca7b8.zip |
fix
-rw-r--r-- | script/provider/diagnostic.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/script/provider/diagnostic.lua b/script/provider/diagnostic.lua index b561c7e4..75ee7711 100644 --- a/script/provider/diagnostic.lua +++ b/script/provider/diagnostic.lua @@ -176,15 +176,15 @@ function m.doDiagnostic(uri) await.delay() - local prog <close> = progress.create('正在诊断', 0.5) - prog:setMessage(ws.getRelativePath(files.getOriginUri(uri))) - local ast = files.getAst(uri) if not ast then m.clear(uri) return end + local prog <close> = progress.create('正在诊断', 0.5) + prog:setMessage(ws.getRelativePath(files.getOriginUri(uri))) + local syntax = m.syntaxErrors(uri, ast) local diags = {} |