-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Closed
Labels
FeatureRequestIssues asking for a new feature that does not need a proposal.Issues asking for a new feature that does not need a proposal.FrozenDueToAgeToolsThis label describes issues relating to any tools in the x/tools repository.This label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.Issues related to the Go language server, gopls.help wanted
Milestone
Description
Is your feature request related to a problem? Please describe.
I have difficulties finding all available methods for given struct, hence this request.
Describe the solution you'd like
When on hover on struct I'd like to display all methods belonging to that struct.
This should work across files. As currently the outline view displays only types defined in currently opened file.
There are 2 solutions that come to my mind:
1) Display methods in hover docs (preferred solution)
- I've took this implementation from JetBrain's Goland IDE as I find it as a best solution
2) Sort methods in outline view
- If the first implementation wouldn't be possible, I think this could still make code navigation easier.
Currently the outline view can be sorted by
1.) position
2.) Name
3.) Category
But the methods aren't visually assigned to struct they belong to.

Additional context
These proposed changes don't make sense in this simple example, but in real project with a lot of types, methods, packages, etc.. it would make better & cleaner code navigation.
tamasd, ashutoshsinghparmar, hwgao, npsoni88, ALiwoto and 1 more
Metadata
Metadata
Assignees
Labels
FeatureRequestIssues asking for a new feature that does not need a proposal.Issues asking for a new feature that does not need a proposal.FrozenDueToAgeToolsThis label describes issues relating to any tools in the x/tools repository.This label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.Issues related to the Go language server, gopls.help wanted
