diff options
-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 = {} |