Skip to content

Commit 379f590

Browse files
committed
Fix toMethodName bug of the Class plugin
1 parent 6c93300 commit 379f590

File tree

1 file changed

+1
-1
lines changed
  • plugins/hls-class-plugin/src/Ide/Plugin

1 file changed

+1
-1
lines changed

plugins/hls-class-plugin/src/Ide/Plugin/Class.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ addMethodPlaceholders lf state AddMinimalMethodsParams{..} = fmap (fromMaybe err
119119

120120
toMethodName n
121121
| Just (h, _) <- T.uncons n
122-
, not (isAlpha h)
122+
, not (isAlpha h || h == '_')
123123
= "(" <> n <> ")"
124124
| otherwise
125125
= n

0 commit comments

Comments
 (0)