diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-09 17:14:36 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-09 17:14:36 +0800 |
commit | 477876c1d89bc8e14cf72d053ade2358ab446d07 (patch) | |
tree | a1de9388e14d074b6d46a68325a456e6fabe7cb0 /script/service/service.lua | |
parent | 69325ab496305c35a34078ae7fb491175c1b09ba (diff) | |
download | lua-language-server-477876c1d89bc8e14cf72d053ade2358ab446d07.zip |
will not sleep anymore
Diffstat (limited to 'script/service/service.lua')
-rw-r--r-- | script/service/service.lua | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/script/service/service.lua b/script/service/service.lua index 8278bbbe..ed83a27a 100644 --- a/script/service/service.lua +++ b/script/service/service.lua @@ -160,17 +160,17 @@ function m.startTimer() end function m.pulse() - timer.loop(10, function () - if not m.workingClock and not m.sleeping and time.monotonic() - m.idleClock >= 300000 then - m.sleeping = true - files.flushCache() - vm.flushCache() - ws.flushCache() - collectgarbage() - collectgarbage() - end - m.reportStatus() - end) + --timer.loop(10, function () + -- if not m.workingClock and not m.sleeping and time.monotonic() - m.idleClock >= 300000 then + -- m.sleeping = true + -- files.flushCache() + -- vm.flushCache() + -- ws.flushCache() + -- collectgarbage() + -- collectgarbage() + -- end + -- m.reportStatus() + --end) timer.loop(0.1, function () m.reportStatus() end) |