From 3eb1852a40f1eaf19331e091fe835d92a396d15f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 9 Dec 2022 16:01:07 +0800 Subject: `activeParameter` should be uinteter #1751 --- script/provider/provider.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script/provider') diff --git a/script/provider/provider.lua b/script/provider/provider.lua index ede4039e..d7c5c655 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -797,7 +797,7 @@ m.register 'textDocument/signatureHelp' { infos[i] = { label = result.label, parameters = parameters, - activeParameter = result.index - 1, + activeParameter = math.max(0, result.index - 1), documentation = result.description and { value = tostring(result.description), kind = 'markdown', -- cgit v1.2.3