x/tools/gopls: add end of line commas during completion #67246
Labels
gopls/completion
Issues related to auto-completion in gopls.
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
go env
What did you do?
What did you see happen?
Selecting a completion target at the cursor's location will insert the completion, but leave it to the user to complete the line with a trailing comma.
What did you expect to see?
gopls should also insert the trailing comma at this point.
Note that if the field name was inserted by gopls completion, it would have added a colon and trailing comma, leaving the cursor in between.
Editor and settings
No response
Logs
No response
The text was updated successfully, but these errors were encountered: