summaryrefslogtreecommitdiff
path: root/server/src/method/textDocument/references.lua
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/references.lua
parent813291da49e57e62fd4118f4a3f8a3cf977c264c (diff)
downloadlua-language-server-637253ee878d80add56c09ea5ecf3369e99cc40e.zip
重新实现穿透require
Diffstat (limited to 'server/src/method/textDocument/references.lua')
-rw-r--r--server/src/method/textDocument/references.lua1
1 files changed, 1 insertions, 0 deletions
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)