diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-06-17 20:53:33 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-06-17 20:53:33 +0800 |
commit | 08b3a7316a4ddcb163c408378fde89a0751d6081 (patch) | |
tree | 90375debc4784b2ea4cb1a5d8875db3b62f2386d /script | |
parent | d24d1eb018787ccdff681e8d5baa33e13e036888 (diff) | |
download | lua-language-server-08b3a7316a4ddcb163c408378fde89a0751d6081.zip |
stash
Diffstat (limited to 'script')
-rw-r--r-- | script/core/diagnostics/init.lua | 4 | ||||
-rw-r--r-- | script/provider/provider.lua | 1 |
2 files changed, 3 insertions, 2 deletions
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) |