summaryrefslogtreecommitdiff
path: root/server/src/method/textDocument
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-26 16:11:27 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-26 16:11:27 +0800
commit637253ee878d80add56c09ea5ecf3369e99cc40e (patch)
tree1a4d05d152ed1e2981eb9b17da30087817619cdd /server/src/method/textDocument
parent813291da49e57e62fd4118f4a3f8a3cf977c264c (diff)
downloadlua-language-server-637253ee878d80add56c09ea5ecf3369e99cc40e.zip
重新实现穿透require
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)