summaryrefslogtreecommitdiff
path: root/server/src/method/textDocument
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/method/textDocument')
-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