-
-
Notifications
You must be signed in to change notification settings - Fork 406
Open
Labels
HackathonThis issue is suitable for hackathon sessionsThis issue is suitable for hackathon sessionscomponent: ghcidelevel: easyThe issue is suited for beginnersThe issue is suited for beginnerstype: enhancementNew feature or requestNew feature or request
Description
When a warning for "Fields of ‘SomeRecord’ not initialised: a, b, c, d" fires, I'd like a CodeAction
that allows it to initialize all of those rows with typed holes.
Flow would look like this:
- let thing = SomeRecord{}
- Ctrl+'.' (or other code action trigger)
let thing = SomeRecord{}--> let thing = SomeRecord { a = _, b = _, c = _, d = _ }
The reason that this is somewhat of a big deal is that in the presence of long record names with the conventional prefix based row names (someRecordA, someRecordB, ...), the typing for this is nontrivial and also entirely mechanical and so the editor is perfectly capable of doing this for me.
fendor, DavidEichmann and JiriLojda
Metadata
Metadata
Assignees
Labels
HackathonThis issue is suitable for hackathon sessionsThis issue is suitable for hackathon sessionscomponent: ghcidelevel: easyThe issue is suited for beginnersThe issue is suited for beginnerstype: enhancementNew feature or requestNew feature or request
Type
Projects
Status
In Progress