gopls version
golang.org/x/tools/gopls v0.16.2
go env
What did you do?
I ran an autofix code action for an undefined struct.

What did you see happen?
gopls generated a new variable instead of a struct type definition.
This is nonsensical from a user point of view & also doesn't compile.

What did you expect to see?
A struct type definition above the function body.
Editor and settings
No response
Logs
No response
gopls version
golang.org/x/tools/gopls v0.16.2
go env
What did you do?
I ran an autofix code action for an undefined struct.
What did you see happen?
goplsgenerated a new variable instead of a struct type definition.This is nonsensical from a user point of view & also doesn't compile.
What did you expect to see?
A struct type definition above the function body.
Editor and settings
No response
Logs
No response