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.lua1
-rw-r--r--server/src/method/textDocument/references.lua1
2 files changed, 2 insertions, 0 deletions
diff --git a/server/src/method/textDocument/documentSymbol.lua b/server/src/method/textDocument/documentSymbol.lua
index f9823385..201137c8 100644
--- a/server/src/method/textDocument/documentSymbol.lua
+++ b/server/src/method/textDocument/documentSymbol.lua
@@ -48,6 +48,7 @@ return function (lsp, params)
end
t:remove()
+ timerCache[uri] = nil
local symbols = core.documentSymbol(vm)
if not symbols then
diff --git a/server/src/method/textDocument/references.lua b/server/src/method/textDocument/references.lua
index c5a3ebf3..f21625c8 100644
--- a/server/src/method/textDocument/references.lua
+++ b/server/src/method/textDocument/references.lua
@@ -23,6 +23,7 @@ return function (lsp, params)
return
end
t:remove()
+ LastTask = nil
vm, lines = lsp:getVM(uri)
local positions = core.references(vm, position, declarat)