vscode-go icon indicating copy to clipboard operation
vscode-go copied to clipboard

Outline does not show return type for Golang files

Open cmprmsd opened this issue 3 years ago • 2 comments

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: image

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

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)

cmprmsd avatar May 13 '22 11:05 cmprmsd

Change https://go.dev/cl/405254 mentions this issue: internal/lsp/source: derive document symbols from syntax alone

gopherbot avatar May 17 '22 13:05 gopherbot

Thanks for reporting.

@hyangah -- this happens to be fixed by https://go.dev/cl/405254.

findleyr avatar May 17 '22 13:05 findleyr