From a2050f55b58e5990ebfc33ed9ae4db90c7bf3f19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 7 Jul 2021 15:01:25 +0800 Subject: cleanup --- script/provider/diagnostic.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'script/provider/diagnostic.lua') 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 -- cgit v1.2.3