diff options
author | unknown <sumnekosun@intranet.123u.com> | 2019-04-02 16:11:21 +0800 |
---|---|---|
committer | unknown <sumnekosun@intranet.123u.com> | 2019-04-02 16:11:21 +0800 |
commit | 43e0d5819011e069893ee9f05eba2fc90d1b4bf5 (patch) | |
tree | 255083f97ebdc497480f56d0353f660127a79b7f | |
parent | 6295603638959c0a11634c76381b20988f32d2a2 (diff) | |
download | lua-language-server-43e0d5819011e069893ee9f05eba2fc90d1b4bf5.zip |
修正报错
-rw-r--r-- | server/src/core/completion.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/core/completion.lua b/server/src/core/completion.lua index 85f0b95e..027f7faa 100644 --- a/server/src/core/completion.lua +++ b/server/src/core/completion.lua @@ -217,7 +217,6 @@ local function searchFields(vm, source, word, callback) local map = {} parent:eachInfo(function (info, src) local k = info[1] - local v = info[2] if src == source then return end @@ -230,11 +229,12 @@ local function searchFields(vm, source, word, callback) if type(k) ~= 'string' then return end + local v = parent:getChild(k) if source:get 'object' and v:getType() ~= 'function' then return end if matchKey(word, k) then - map[k] = parent:getChild(k) + map[k] = v end end) parent:eachLibChild(function (k, v) |