vscode-go
vscode-go copied to clipboard
Outline does not show return type for Golang files
Is your feature request related to a problem? Please describe. Currently the outline shows argument types for functions in the current file. However, the return types are not listed.
E.g. see this outline:

where the function itself has []byte as return type.

Is this something you consider useful?
Describe the solution you'd like The outline should show return types.
Side note: It'd be also nice if the global variables could be collapsed (maybe even default or globally or for a workspace)
Change https://go.dev/cl/405254 mentions this issue: internal/lsp/source: derive document symbols from syntax alone
Thanks for reporting.
@hyangah -- this happens to be fixed by https://go.dev/cl/405254.