diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-03-26 13:45:42 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-03-26 13:45:42 +0800 |
commit | b6568168f9419f8c3c14f966b4520b73a03f5bd0 (patch) | |
tree | 2870d6456c9b39fa926623ecfe811375a3c18c86 /server/src | |
parent | f7291b57469e7b0a96f2f0fd13fd7d5dab01154c (diff) | |
download | lua-language-server-b6568168f9419f8c3c14f966b4520b73a03f5bd0.zip |
修正查找引用的一个bug
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/core/references.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/core/references.lua b/server/src/core/references.lua index 4bd26b07..10d8b2df 100644 --- a/server/src/core/references.lua +++ b/server/src/core/references.lua @@ -18,7 +18,7 @@ local function parseResult(vm, source, declarat, callback) end end) loc:getValue():eachInfo(function (info, src) - if (declarat and (info.type == 'set' or info.type == 'local')) or info.type == 'get' then + if (declarat and (info.type == 'set' or info.type == 'local' or info.type == 'return')) or info.type == 'get' then callback(src) end end) |