From 535b1fa45f3f1f4e90b6e052ba9e280fb1359b63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 3 Nov 2020 17:44:33 +0800 Subject: =?UTF-8?q?=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script-beta/core/completion.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'script-beta/core') 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) -- cgit v1.2.3