diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-03-26 16:11:27 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-03-26 16:11:27 +0800 |
commit | 637253ee878d80add56c09ea5ecf3369e99cc40e (patch) | |
tree | 1a4d05d152ed1e2981eb9b17da30087817619cdd /server/src/method/textDocument | |
parent | 813291da49e57e62fd4118f4a3f8a3cf977c264c (diff) | |
download | lua-language-server-637253ee878d80add56c09ea5ecf3369e99cc40e.zip |
重新实现穿透require
Diffstat (limited to 'server/src/method/textDocument')
-rw-r--r-- | server/src/method/textDocument/documentSymbol.lua | 1 | ||||
-rw-r--r-- | server/src/method/textDocument/references.lua | 1 |
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) |