summaryrefslogtreecommitdiff
path: root/server/src/method
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-26 17:32:48 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-26 17:32:48 +0800
commitf637a34ca04a4f503e08ea977b44db9a26c641c3 (patch)
treed536bf7acf4ee06c5d71998b77b8596546fa1e17 /server/src/method
parent6ed62803fc201aacc4e9bd4aee6b24bcf2d7b217 (diff)
downloadlua-language-server-f637a34ca04a4f503e08ea977b44db9a26c641c3.zip
更新
Diffstat (limited to 'server/src/method')
-rw-r--r--server/src/method/textDocument/documentSymbol.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/src/method/textDocument/documentSymbol.lua b/server/src/method/textDocument/documentSymbol.lua
index 201137c8..915c0126 100644
--- a/server/src/method/textDocument/documentSymbol.lua
+++ b/server/src/method/textDocument/documentSymbol.lua
@@ -44,6 +44,11 @@ return function (lsp, params)
timerCache[uri] = ac.loop(0.1, function (t)
local vm, lines = lsp:getVM(uri)
if not vm then
+ if not lsp:isWaitingCompile() then
+ t:remove()
+ timerCache[uri] = nil
+ response(nil)
+ end
return
end