Auto-complete in documentation string
Problem I saw in https://go.dev/blog/godoc that there is a simple convention about documentation in golang: you should to write object's name firstly and then describe it's functionality.
Soulution What about to add auto-complete in object's documentations to avoid manually retyping it's name?
The extension already provides the name as the first candidate of the completion results if you trigger completion after // . Is it not working for you? If so, please share the repro case so we can triage.
No, it's not working for me.
Also, nothing in extension logs.
Regular autocomplete is working.
Can you please follow the step here https://github.com/golang/vscode-go/wiki/troubleshooting#collect-extension-logs
and share the log if sharing the repro case is not possible?
We also need gopls and go versions, and your editor settings.
My representation case is simple: i have method named FromDB. When i try to make doc string for this method - there are no completion suggestions. And it also doesn't work for any other method, function, struct field...
My go version is 1.22.5
My golps version is golang.org/x/tools/gopls v0.16.1
My logs from golps after typing // Fr