Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outline does not show return type for Golang files #2242

Closed
cmprmsd opened this issue May 13, 2022 · 2 comments
Closed

Outline does not show return type for Golang files #2242

cmprmsd opened this issue May 13, 2022 · 2 comments
Labels
FrozenDueToAge gopls gopls related issues

Comments

@cmprmsd
Copy link

cmprmsd commented May 13, 2022

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)

@gopherbot
Copy link
Collaborator

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

@findleyr
Copy link
Contributor

Thanks for reporting.

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

@findleyr findleyr modified the milestones: Untriaged, On Deck May 17, 2022
@hyangah hyangah added the gopls gopls related issues label Jun 7, 2022
@golang golang locked and limited conversation to collaborators Sep 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge gopls gopls related issues
Projects
None yet
Development

No branches or pull requests

4 participants