summaryrefslogtreecommitdiff
path: root/server/src/service.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/service.lua')
-rw-r--r--server/src/service.lua10
1 files changed, 2 insertions, 8 deletions
diff --git a/server/src/service.lua b/server/src/service.lua
index b3ff0d07..652fa7d5 100644
--- a/server/src/service.lua
+++ b/server/src/service.lua
@@ -223,15 +223,10 @@ end
function mt:on_tick()
local proto = thread.proto()
if proto then
- self._idleClock = os.clock()
self:_doProto(proto)
- return
- end
- if os.clock() - self._idleClock >= 0.2 then
- self._idleClock = os.clock()
- self:_buildTextCache()
- self:_doDiagnostic()
end
+ self:_buildTextCache()
+ self:_doDiagnostic()
end
function mt:listen()
@@ -254,7 +249,6 @@ return function ()
_file = {},
_needCompile = {},
_needDiagnostics = {},
- _idleClock = os.clock(),
}, mt)
return session
end