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
128
128
""
129
129
end
130
130
131
+ function_name =
132
+ "#{ mod_str } .#{ fun_str } (#{ Enum . join ( info . args , ", " ) } )"
133
+ |> Code . format_string! ( line_length: 40 )
134
+ |> to_string
135
+
131
136
"""
132
137
```elixir
133
- #{ mod_str } . #{ fun_str } ( #{ Enum . join ( info . args , ", " ) } )
138
+ #{ function_name }
134
139
```
135
140
136
141
*#{ kind } * #{ build_function_link ( info . module , info . function , info . arity ) }
@@ -152,9 +157,14 @@ defmodule ElixirLS.LanguageServer.Providers.Hover do
152
157
atom -> inspect ( atom ) <> "."
153
158
end
154
159
160
+ type_name =
161
+ "#{ mod_formatted } #{ info . type } (#{ Enum . join ( info . args , ", " ) } )"
162
+ |> Code . format_string! ( line_length: 40 )
163
+ |> to_string
164
+
155
165
"""
156
166
```elixir
157
- #{ mod_formatted } #{ info . type } ( #{ Enum . join ( info . args , ", " ) } )
167
+ #{ type_name }
158
168
```
159
169
160
170
*type* #{ build_type_link ( info . module , info . type , info . arity ) }
You can’t perform that action at this time.
0 commit comments