summaryrefslogtreecommitdiff
path: root/server/src/core/implementation.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-01-21 16:13:17 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-01-21 16:13:17 +0800
commit961d11ad4bd4834dab7a7108dc95298331374fe8 (patch)
tree6136ac2f35efb10b52ccf34ddd15d890fb3e0043 /server/src/core/implementation.lua
parent0cbeef42edd65845900a7b51254b902c3f798e5c (diff)
downloadlua-language-server-961d11ad4bd4834dab7a7108dc95298331374fe8.zip
修正一个缓存bug
Diffstat (limited to 'server/src/core/implementation.lua')
-rw-r--r--server/src/core/implementation.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/server/src/core/implementation.lua b/server/src/core/implementation.lua
index 8f52cc38..d3681652 100644
--- a/server/src/core/implementation.lua
+++ b/server/src/core/implementation.lua
@@ -74,11 +74,11 @@ end
local function parseResult(vm, result, lsp)
local positions = {}
- if result.value.lib then
- return positions
- end
local tp = result.type
if tp == 'local' then
+ if result.value.lib then
+ return positions
+ end
if result.value.uri ~= vm.uri then
parseResultAcrossUri(positions, vm, result)
else
@@ -93,6 +93,9 @@ local function parseResult(vm, result, lsp)
end
end
elseif tp == 'field' then
+ if result.value.lib then
+ return positions
+ end
if result.value.uri ~= vm.uri then
parseResultAcrossUri(positions, vm, result)
else