Skip to content

Commit

Permalink
Remove leading underscore from inlay hint
Browse files Browse the repository at this point in the history
  • Loading branch information
plux committed Oct 10, 2024
1 parent ed1daaa commit b6093d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/els_lsp/src/els_inlay_hint_provider.erl
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ arg_hints(_Uri, _POI) ->
arg_hint(#{from := {FromL, FromC}}, ArgName) ->
#{
position => #{line => FromL - 1, character => FromC - 1},
label => unicode:characters_to_binary(ArgName ++ ":"),
label => unicode:characters_to_binary(
remove_leading_underscore(ArgName) ++ ":"
),
paddingRight => true,
kind => ?INLAY_HINT_KIND_PARAMETER
}.
Expand Down

0 comments on commit b6093d1

Please sign in to comment.