diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-11-09 15:16:09 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-11-09 15:16:09 +0800 |
commit | ea95e996ba0d8b7657f9ab29735136003c49b008 (patch) | |
tree | 2622fc8a0f4900f5de4c96729f7ded906f295e53 /script/provider | |
parent | 9252da2181d15ab4a7db88a32f0eb54f58f2478d (diff) | |
download | lua-language-server-ea95e996ba0d8b7657f9ab29735136003c49b008.zip |
clear diags when file updated
Diffstat (limited to 'script/provider')
-rw-r--r-- | script/provider/diagnostic.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/script/provider/diagnostic.lua b/script/provider/diagnostic.lua index c8d6c211..f60a9149 100644 --- a/script/provider/diagnostic.lua +++ b/script/provider/diagnostic.lua @@ -274,6 +274,7 @@ function m.refresh(uri) await.call(function () ---@async await.delay() if uri then + m.clear(uri) xpcall(m.doDiagnostic, log.error, uri) end m.diagnosticsAll() |