diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-01-21 16:08:51 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-01-21 16:08:51 +0800 |
commit | 0cbeef42edd65845900a7b51254b902c3f798e5c (patch) | |
tree | 9d72e40c0f9592d27e18f1e2198c191e21c8a457 /server/src/core | |
parent | 2166bae734d509795a6568aece5afeba8c4262eb (diff) | |
download | lua-language-server-0cbeef42edd65845900a7b51254b902c3f798e5c.zip |
修正库函数会跳转到错误文件的BUG
Diffstat (limited to 'server/src/core')
-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 |