diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-11-02 17:55:39 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-11-02 17:55:39 +0800 |
commit | 4acd712def70f0e119e41eb8c1011f6796739de9 (patch) | |
tree | 766d7df442137bbfdb2ec34dfeae9f9fc3cb0afa /server-beta/src/core/definition.lua | |
parent | 1d099da37d10c5d9272780a4b85a212ef1f876aa (diff) | |
download | lua-language-server-4acd712def70f0e119e41eb8c1011f6796739de9.zip |
修正 uri
Diffstat (limited to 'server-beta/src/core/definition.lua')
-rw-r--r-- | server-beta/src/core/definition.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server-beta/src/core/definition.lua b/server-beta/src/core/definition.lua index b3b5c173..f9ba00d1 100644 --- a/server-beta/src/core/definition.lua +++ b/server-beta/src/core/definition.lua @@ -21,7 +21,7 @@ local function findDef(searcher, source, callback) or info.mode == 'set' or info.mode == 'return' then local src = info.source - local uri = info.uri + local uri = info.searcher.uri if src.type == 'setfield' or src.type == 'getfield' or src.type == 'tablefield' then @@ -81,7 +81,7 @@ return function (uri, offset) guide.eachSourceContain(searcher.ast, offset, function (source) checkRequire(searcher, source, offset, function (uri) results[#results+1] = { - uri = uri, + uri = files.getOriginUri(uri), source = source, target = { start = 0, @@ -92,7 +92,7 @@ return function (uri, offset) findDef(searcher, source, function (target, uri) results[#results+1] = { target = target, - uri = uri, + uri = files.getOriginUri(uri), source = source, } end) |