summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/src/method/textDocument/documentSymbol.lua2
-rw-r--r--server/src/method/textDocument/references.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/src/method/textDocument/documentSymbol.lua b/server/src/method/textDocument/documentSymbol.lua
index 321baae3..f9823385 100644
--- a/server/src/method/textDocument/documentSymbol.lua
+++ b/server/src/method/textDocument/documentSymbol.lua
@@ -41,7 +41,7 @@ return function (lsp, params)
end
return function (response)
- timerCache[uri] = ac.timer(0.1, 10, function (t)
+ timerCache[uri] = ac.loop(0.1, function (t)
local vm, lines = lsp:getVM(uri)
if not vm then
return
diff --git a/server/src/method/textDocument/references.lua b/server/src/method/textDocument/references.lua
index ad1ebce0..c5a3ebf3 100644
--- a/server/src/method/textDocument/references.lua
+++ b/server/src/method/textDocument/references.lua
@@ -18,7 +18,7 @@ return function (lsp, params)
local position = lines:positionAsChar(params.position.line + 1, params.position.character)
return function (response)
- LastTask = ac.timer(0.1, 100, function (t)
+ LastTask = ac.loop(0.1, function (t)
if lsp:isWaitingCompile() then
return
end