@@ -138,6 +138,7 @@ defmodule ElixirLS.LanguageServer.Providers.Completion do
138138 text_before_cursor: text_before_cursor ,
139139 text_after_cursor: text_after_cursor ,
140140 prefix: prefix ,
141+ remote_calls?: match? ( { :dot , _ , _ } , Code.Fragment . cursor_context ( prefix ) ) ,
141142 def_before: def_before ,
142143 pipe_before?: Regex . match? ( Regex . recompile! ( ~r/ \| >\s *#{ prefix } $/ ) , text_before_cursor ) ,
143144 capture_before?: Regex . match? ( Regex . recompile! ( ~r/ &#{ prefix } $/ ) , text_before_cursor ) ,
@@ -1030,6 +1031,7 @@ defmodule ElixirLS.LanguageServer.Providers.Completion do
10301031 } = info
10311032
10321033 % {
1034+ remote_calls?: remote_calls? ,
10331035 pipe_before?: pipe_before? ,
10341036 capture_before?: capture_before? ,
10351037 text_after_cursor: text_after_cursor
@@ -1038,7 +1040,7 @@ defmodule ElixirLS.LanguageServer.Providers.Completion do
10381040 locals_without_parens = Keyword . get ( options , :locals_without_parens )
10391041 signature_help_supported? = Keyword . get ( options , :signature_help_supported , false )
10401042 signature_after_complete? = Keyword . get ( options , :signature_after_complete , true )
1041- with_parens? = function_name_with_parens? ( name , arity , locals_without_parens )
1043+ with_parens? = remote_calls? || function_name_with_parens? ( name , arity , locals_without_parens )
10421044
10431045 trigger_signature? = signature_help_supported? && ( ( arity == 1 && ! pipe_before? ) || arity > 1 )
10441046
0 commit comments