diff options
-rw-r--r-- | server/src/core/definition.lua | 3 | ||||
-rw-r--r-- | server/src/core/implementation.lua | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/server/src/core/definition.lua b/server/src/core/definition.lua index cd44f94f..9c3f9a2f 100644 --- a/server/src/core/definition.lua +++ b/server/src/core/definition.lua @@ -75,6 +75,9 @@ 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.uri ~= vm.uri then diff --git a/server/src/core/implementation.lua b/server/src/core/implementation.lua index f6593cf2..8f52cc38 100644 --- a/server/src/core/implementation.lua +++ b/server/src/core/implementation.lua @@ -74,6 +74,9 @@ 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.uri ~= vm.uri then |