diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-03-18 18:15:45 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-03-18 18:15:45 +0800 |
commit | b44d1495ae952dab235b9a79cabbeb56be30da8f (patch) | |
tree | 2b3552ada165bcaf8ae38647d6d303e40b92d751 /server/src | |
parent | 063b9a38ed5480dff0ef4571d1c820123ae030b3 (diff) | |
download | lua-language-server-b44d1495ae952dab235b9a79cabbeb56be30da8f.zip |
修正一个bug
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/core/references.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/src/core/references.lua b/server/src/core/references.lua index bc6cc39e..26d65bf1 100644 --- a/server/src/core/references.lua +++ b/server/src/core/references.lua @@ -11,6 +11,7 @@ local function parseResult(vm, source, declarat, callback) end if source:bindLocal() then local loc = source:bindLocal() + callback(loc:getSource()) loc:eachInfo(function (info, src) if (declarat and info.type == 'set') or info.type == 'get' then callback(src) |