summaryrefslogtreecommitdiff
path: root/server/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/core')
-rw-r--r--server/src/core/definition.lua9
-rw-r--r--server/src/core/implementation.lua9
2 files changed, 12 insertions, 6 deletions
diff --git a/server/src/core/definition.lua b/server/src/core/definition.lua
index 9c3f9a2f..44f4813a 100644
--- a/server/src/core/definition.lua
+++ b/server/src/core/definition.lua
@@ -75,11 +75,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
@@ -94,6 +94,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
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