summaryrefslogtreecommitdiff
path: root/script/service/service.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-08-18 19:55:04 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-08-18 19:55:04 +0800
commit38d46faae20bbdbc3578452f020276766aed67e0 (patch)
tree6ff276e89459b4d7098a5d1e50789a82ab2c6449 /script/service/service.lua
parent1d0dc164b84fffdfe281615013278013baf9aae7 (diff)
downloadlua-language-server-38d46faae20bbdbc3578452f020276766aed67e0.zip
watching library changes
Diffstat (limited to 'script/service/service.lua')
-rw-r--r--script/service/service.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/script/service/service.lua b/script/service/service.lua
index ed83a27a..973b5745 100644
--- a/script/service/service.lua
+++ b/script/service/service.lua
@@ -10,6 +10,7 @@ local files = require 'files'
local lang = require 'language'
local ws = require 'workspace'
local time = require 'bee.time'
+local fw = require 'filewatch'
local m = {}
m.type = 'service'
@@ -174,6 +175,9 @@ function m.pulse()
timer.loop(0.1, function ()
m.reportStatus()
end)
+ timer.loop(1, function ()
+ fw.update()
+ end)
end
function m.reportStatus()