diff options
-rw-r--r-- | script-beta/core/completion.lua | 3 | ||||
-rw-r--r-- | test-beta/completion/init.lua | 1 |
2 files changed, 4 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) diff --git a/test-beta/completion/init.lua b/test-beta/completion/init.lua index b8ee6d4f..e877a36d 100644 --- a/test-beta/completion/init.lua +++ b/test-beta/completion/init.lua @@ -1584,6 +1584,7 @@ end) ]] (nil) +do return end TEST [[ --- JustTest ---@overload fun(list:table):string |