@@ -199,7 +199,7 @@ defmodule ElixirLS.LanguageServer.Providers.DocumentSymbols do
199
199
200
200
% Info {
201
201
type: type ,
202
- name: "#{ name_str } /#{ length ( args || [ ] ) } " ,
202
+ name: "#{ name_str } /#{ if ( is_list ( args ) , do: length ( args ) , else: 0 ) } " ,
203
203
detail: "@#{ type_kind } " ,
204
204
location: location ,
205
205
selection_location: type_head_location ,
@@ -237,7 +237,7 @@ defmodule ElixirLS.LanguageServer.Providers.DocumentSymbols do
237
237
% Info {
238
238
type: if ( defname in @ macro_defs , do: :constant , else: :function ) ,
239
239
symbol: name_str ,
240
- name: "#{ name_str } /#{ length ( args || [ ] ) } " ,
240
+ name: "#{ name_str } /#{ if ( is_list ( args ) , do: length ( args ) , else: 0 ) } " ,
241
241
detail: defname ,
242
242
location: location ,
243
243
selection_location: head_location ,
@@ -261,7 +261,7 @@ defmodule ElixirLS.LanguageServer.Providers.DocumentSymbols do
261
261
% Info {
262
262
type: if ( defname in @ macro_defs , do: :constant , else: :function ) ,
263
263
symbol: name_str ,
264
- name: "#{ name_str } /#{ length ( args || [ ] ) } " ,
264
+ name: "#{ name_str } /#{ if ( is_list ( args ) , do: length ( args ) , else: 0 ) } " ,
265
265
detail: defname ,
266
266
location: location ,
267
267
selection_location: head_location ,
0 commit comments