summaryrefslogtreecommitdiff
path: root/script/provider/diagnostic.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/provider/diagnostic.lua')
-rw-r--r--script/provider/diagnostic.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/script/provider/diagnostic.lua b/script/provider/diagnostic.lua
index 0a857be7..7ded406d 100644
--- a/script/provider/diagnostic.lua
+++ b/script/provider/diagnostic.lua
@@ -411,4 +411,12 @@ await.watch(function (ev, co)
end
end)
+config.watch(function (key, value, oldValue)
+ if key:find 'Lua.diagnostics' then
+ if value ~= oldValue then
+ m.diagnosticsAll()
+ end
+ end
+end)
+
return m