diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-03 17:44:33 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-03 17:44:33 +0800 |
commit | 535b1fa45f3f1f4e90b6e052ba9e280fb1359b63 (patch) | |
tree | d0ecfdbb2549733f699803b1a7fde4de57f7ec04 /script-beta/core | |
parent | e9a1f9bec74809b3102e58109ab368533f4bb308 (diff) | |
download | lua-language-server-535b1fa45f3f1f4e90b6e052ba9e280fb1359b63.zip |
暂存
Diffstat (limited to 'script-beta/core')
-rw-r--r-- | script-beta/core/completion.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script-beta/core/completion.lua b/script-beta/core/completion.lua index ff92cb95..75e8a470 100644 --- a/script-beta/core/completion.lua +++ b/script-beta/core/completion.lua @@ -988,6 +988,9 @@ local function tryCallArg(ast, text, offset, results) end local myResults = {} local argIndex, arg = getCallArgInfo(call, text, offset) + if arg and arg.type == 'function' then + return + end local defs = vm.getDefs(call.node, 'deep') for _, def in ipairs(defs) do local enums = getCallEnums(def, argIndex) |