File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
apps/language_server/lib/language_server/providers Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -128,9 +128,14 @@ defmodule ElixirLS.LanguageServer.Providers.Hover do
128128 ""
129129 end
130130
131+ function_name =
132+ "#{ mod_str } .#{ fun_str } (#{ Enum . join ( info . args , ", " ) } )"
133+ |> Code . format_string! ( line_length: 40 )
134+ |> to_string
135+
131136 """
132137 ```elixir
133- #{ mod_str } . #{ fun_str } ( #{ Enum . join ( info . args , ", " ) } )
138+ #{ function_name }
134139 ```
135140
136141 *#{ kind } * #{ build_function_link ( info . module , info . function , info . arity ) }
@@ -152,9 +157,14 @@ defmodule ElixirLS.LanguageServer.Providers.Hover do
152157 atom -> inspect ( atom ) <> "."
153158 end
154159
160+ type_name =
161+ "#{ mod_formatted } #{ info . type } (#{ Enum . join ( info . args , ", " ) } )"
162+ |> Code . format_string! ( line_length: 40 )
163+ |> to_string
164+
155165 """
156166 ```elixir
157- #{ mod_formatted } #{ info . type } ( #{ Enum . join ( info . args , ", " ) } )
167+ #{ type_name }
158168 ```
159169
160170 *type* #{ build_type_link ( info . module , info . type , info . arity ) }
You can’t perform that action at this time.
0 commit comments