summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-02-09 17:15:29 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-02-09 17:15:29 +0800
commit5ad56c9ccfef9dfbe18a8846d1303b4668077b55 (patch)
tree0e943d028f447e21f228822a6eef1767934b1363 /script
parent864e44403190d6b96313968d008dbc60a8a11342 (diff)
downloadlua-language-server-5ad56c9ccfef9dfbe18a8846d1303b4668077b55.zip
update diagnostics after editting `.editorconfig`
Diffstat (limited to 'script')
-rw-r--r--script/provider/provider.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 1ddca309..5af56f24 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -998,6 +998,12 @@ m.register 'config/editorconfig/update' {
if not status and err ~= nil then
log.error(err)
+ return
+ end
+
+ local diagnostic = require 'provider.diagnostic'
+ for _, scp in ipairs(workspace.folders) do
+ diagnostic.diagnosticsScope(scp.uri)
end
end
}