-
-
Notifications
You must be signed in to change notification settings - Fork 391
Strip prefixes added by DuplicateRecordFields #4593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strip prefixes added by DuplicateRecordFields #4593
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for taking care of this issue!
Just one comment.
plugins/hls-explicit-record-fields-plugin/src/Ide/Plugin/ExplicitFields.hs
Outdated
Show resolved
Hide resolved
plugins/hls-explicit-record-fields-plugin/src/Ide/Plugin/ExplicitFields.hs
Outdated
Show resolved
Hide resolved
Thanks for the review. Applied your comments. |
8d209ea
to
0519351
Compare
0519351
to
deb8901
Compare
Done. No problem, thanks for helping :)
Is there anything I need to do ? |
Thank you for your PR and your work, it is much appreciated!
Choosing another issue to fix? ;D |
* Strip prefixes added by DuplicateRecordFields to disambiguate record selectors from inlay hints * Fix style * Extract stripPrefixes to a common utility, convert comment to haddoc * Move to GHC Util
Fix for: #4547
DuplicateRecordFields adds
$sel:...:fieldName
to disambiguate record selectors. The selectors are included in the inlay hints making them slightly confusing: