Distinguish between wildcard expansion and traditional record syntax#4819
Conversation
4a98c22 to
0c84caa
Compare
|
@fendor I have rebased the PR on top of |
|
Thanks! In the future, you should also be able to merge, right? |
@fendor Yes, there were no technical blockers for me to merge, I was just being cautious (perhaps overly so) by leaving the final decision to a more "authoritative" maintainer.
Sounds like a good idea! |
I understand that and it makes sense to me! I am a little worried, we have few "authoritative" maintainers left at the moment, rendering us kind of reliant on these few maintainers, waiting for their approval... |
While reviewing #4813, I realized that the code action for the expansion of positional records was producing the message "Expand record wildcard". This must be confusing for users on multiple levels, since:
This PR aims to fix this by producing different titles for the code action depending on whether it is a wildcard expansion or "positional record expansion". I have opted to rephrase the latter as "Convert to traditional record syntax", both to be consistent with the GADT conversion code action, and also with
-XTraditionalRecordSyntax.