/ go Public
x/tools/gopls: consider using &S form instead of *S for pointer type struct field autocompletion #39227
Issues related to the Go language server, gopls.
Feedback is required from experts, contributors, and/or the community before a change can be made.
This label describes issues relating to any tools in the x/tools repository.
Currently autocompletion for a struct field uses the field's type as the placeholder text. For example,
The autocompletion for the
goplsuses the type info for placeholder text, so I don't think the choice is incorrect nor invalid.
But if the suggestion used
&Finstead, it would be more convenient when users want to use composite literals. Especially, if the type name is long to type, reusing what's already in the placeholder will save many keystrokes.
(Based on golang/vscode-go#85)
The text was updated successfully, but these errors were encountered: