summaryrefslogtreecommitdiff
path: root/script-beta/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-07-21 22:16:18 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-07-21 22:16:18 +0800
commit050b7262a4019a1ecafac0acdc5bd9a1b0ca0bf4 (patch)
tree508723afe0c2d322582cf8116b21e3625e9f681d /script-beta/core
parentde8ca882f4b50b667c6f4c647d26937a869f8546 (diff)
downloadlua-language-server-050b7262a4019a1ecafac0acdc5bd9a1b0ca0bf4.zip
支持单对象跨文件
Diffstat (limited to 'script-beta/core')
-rw-r--r--script-beta/core/definition.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script-beta/core/definition.lua b/script-beta/core/definition.lua
index fa13c010..6a895256 100644
--- a/script-beta/core/definition.lua
+++ b/script-beta/core/definition.lua
@@ -89,7 +89,7 @@ return function (uri, offset)
vm.eachDef(source, function (src)
results[#results+1] = {
target = src,
- uri = files.getOriginUri(uri),
+ uri = guide.getRoot(src).uri,
source = source,
}
end)