summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changelog.md1
-rw-r--r--script/service/service.lua22
2 files changed, 12 insertions, 11 deletions
diff --git a/changelog.md b/changelog.md
index d89bef9f..dfe441a9 100644
--- a/changelog.md
+++ b/changelog.md
@@ -2,6 +2,7 @@
## 2.2.3
* `CHG` improve `auto require`
+* `CHG` will not sleep anymore
* `FIX` incorrect doc: `debug.getlocal`
* `FIX` completion: incorrect callback
* `FIX` [#592](https://github.com/sumneko/lua-language-server/issues/592)
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)