From 08b3a7316a4ddcb163c408378fde89a0751d6081 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 17 Jun 2021 20:53:33 +0800 Subject: stash --- script/core/diagnostics/init.lua | 4 +++- script/provider/provider.lua | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'script') diff --git a/script/core/diagnostics/init.lua b/script/core/diagnostics/init.lua index 5446a7c3..0a04ad91 100644 --- a/script/core/diagnostics/init.lua +++ b/script/core/diagnostics/init.lua @@ -70,7 +70,9 @@ return function (uri, response) return nil end - log.debug('do diagnostic @', uri) + if TEST then + log.debug('do diagnostic @', uri) + end for _, name in ipairs(diagList) do await.delay() diff --git a/script/provider/provider.lua b/script/provider/provider.lua index 3ac71d8b..57126bff 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -913,7 +913,6 @@ do files.watch(function (ev, uri) if ev == 'update' or ev == 'updateVisible' then - await.delay() await.call(function () updateHint(uri) end) -- cgit v1.2.3