diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-03-26 15:23:14 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-03-26 15:23:14 +0800 |
commit | 813291da49e57e62fd4118f4a3f8a3cf977c264c (patch) | |
tree | 2f13d9d7c20a333c3bb060f7ef2e7b6ed7f22671 /server | |
parent | c550a2051e6302c92ad1c2cd8c0b808320d07b5f (diff) | |
download | lua-language-server-813291da49e57e62fd4118f4a3f8a3cf977c264c.zip |
不再设置超时时间
Diffstat (limited to 'server')
-rw-r--r-- | server/src/method/textDocument/documentSymbol.lua | 2 | ||||
-rw-r--r-- | server/src/method/textDocument/references.lua | 2 |
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 |