summaryrefslogtreecommitdiff
path: root/script/provider
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-11-15 10:33:33 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-11-15 10:33:33 +0800
commit51ee59203868cfe1177403a06d74ae7412c78f4d (patch)
tree06ecc7d76da240e291d54f9863fa56dc02ed6b93 /script/provider
parentbfeea5916effde22eae483a2f3b3077cbd7f6e52 (diff)
downloadlua-language-server-51ee59203868cfe1177403a06d74ae7412c78f4d.zip
do scope diag when creating and removing files
Diffstat (limited to 'script/provider')
-rw-r--r--script/provider/diagnostic.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/script/provider/diagnostic.lua b/script/provider/diagnostic.lua
index cec78d70..0f7d5dd0 100644
--- a/script/provider/diagnostic.lua
+++ b/script/provider/diagnostic.lua
@@ -655,6 +655,11 @@ files.watch(function (ev, uri) ---@async
m.clear(uri)
m.stopScopeDiag(uri)
m.refresh(uri)
+ m.refreshScopeDiag('OnSave', uri)
+ elseif ev == 'create' then
+ m.stopScopeDiag(uri)
+ m.refresh(uri)
+ m.refreshScopeDiag('OnSave', uri)
elseif ev == 'update' then
m.stopScopeDiag(uri)
m.refresh(uri)