Skip to content

Commit b6093d1

Browse files
committed
Remove leading underscore from inlay hint
1 parent ed1daaa commit b6093d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/els_lsp/src/els_inlay_hint_provider.erl

+3-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ arg_hints(_Uri, _POI) ->
119119
arg_hint(#{from := {FromL, FromC}}, ArgName) ->
120120
#{
121121
position => #{line => FromL - 1, character => FromC - 1},
122-
label => unicode:characters_to_binary(ArgName ++ ":"),
122+
label => unicode:characters_to_binary(
123+
remove_leading_underscore(ArgName) ++ ":"
124+
),
123125
paddingRight => true,
124126
kind => ?INLAY_HINT_KIND_PARAMETER
125127
}.

0 commit comments

Comments
 (0)