You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that current logic of GoStructInitializationInspection could be better: inspection suggests to replace single unnamed element by named, but we have to name all element in the struct literal to get valid code.
So i propose highlight the whole struct literal when at least one unnamed element is present. Quickfix will add names to all unnamed elements.
P.S. Current implementation misses case when several fields in struct declared by one type (see image.Point) as example.