From 216ff0e2969c2bbe45d324c4d6a5f08e6b681f5e Mon Sep 17 00:00:00 2001 From: Lukasz Samson Date: Fri, 28 Jul 2023 08:34:57 +0200 Subject: [PATCH] fix off by one error --- .../language_server/lib/language_server/providers/completion.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/language_server/lib/language_server/providers/completion.ex b/apps/language_server/lib/language_server/providers/completion.ex index 2a48bc7ae..9787c1f44 100644 --- a/apps/language_server/lib/language_server/providers/completion.ex +++ b/apps/language_server/lib/language_server/providers/completion.ex @@ -661,7 +661,7 @@ defmodule ElixirLS.LanguageServer.Providers.Completion do signature_help_supported? = Keyword.get(options, :signature_help_supported, false) signature_after_complete? = Keyword.get(options, :signature_after_complete, true) - trigger_signature? = signature_help_supported? && arity > 1 + trigger_signature? = signature_help_supported? && arity >= 1 command = if trigger_signature? && signature_after_complete? do