From 75509a89ecc69c683c015a97c9844746c81e6057 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 14 Apr 2022 22:23:32 +0800 Subject: cheanup --- script/core/completion/completion.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'script/core/completion') diff --git a/script/core/completion/completion.lua b/script/core/completion/completion.lua index 33d8fc16..428c8e96 100644 --- a/script/core/completion/completion.lua +++ b/script/core/completion/completion.lua @@ -1724,7 +1724,7 @@ local function tryluaDocByErr(state, position, err, docState, results) local label = {} local insertText = {} for i, arg in ipairs(func.args) do - if arg[1] and not arg.dummy then + if arg[1] and arg.type ~= 'self' then label[#label+1] = arg[1] if #label == 1 then insertText[#insertText+1] = ('%s ${%d:any}'):format(arg[1], #label) @@ -1788,7 +1788,7 @@ local function buildluaDocOfFunction(func) end for n, arg in ipairs(args) do local funcArg = func.args[n] - if funcArg[1] and not funcArg.dummy then + if funcArg[1] and funcArg.type ~= 'self' then index = index + 1 buf[#buf+1] = ('---@param %s ${%d:%s}'):format( funcArg[1], -- cgit v1.2.3