x/tools/gopls: feature: offer a quickfix to define a struct field on "has no field or method" error #70217
Labels
FeatureRequest
Issues asking for a new feature that does not need a proposal.
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
gopls version
v0.16.2
go env
What did you do?
Having a cursor on a non defined field doesn't suggest a quickfix to declare a new struct field.
Recently a similar feature was merged #69692 to define a missing method.
However, the ability to make a field is missing.
What did you see happen?
no action suggested
What did you expect to see?
A suggested quick fix "Define a struct field" exists and create a field
Editor and settings
Logs
The text was updated successfully, but these errors were encountered: