diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-11-06 22:58:11 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-11-06 22:58:11 +0800 |
commit | 9be846d86c494e08d376aa465e8269796176765a (patch) | |
tree | 04027cdb5ae6a118739a92911dbbd6797a39939f /script/core/completion | |
parent | dcca81c4fa7bd9b745123be8be0c8b07fcd6e29a (diff) | |
download | lua-language-server-9be846d86c494e08d376aa465e8269796176765a.zip |
type check: check the fields in table
resolve #1434
Diffstat (limited to 'script/core/completion')
-rw-r--r-- | script/core/completion/completion.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/completion/completion.lua b/script/core/completion/completion.lua index 0a3c0211..f2e1e7be 100644 --- a/script/core/completion/completion.lua +++ b/script/core/completion/completion.lua @@ -568,7 +568,7 @@ local function checkFieldOfRefs(refs, state, word, startPos, position, parent, o local funcs = {} local count = 0 for _, src in ipairs(refs) do - local name = vm.getKeyName(src) + local _, name = vm.viewKey(src, state.uri) if not name then goto CONTINUE end |