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

x/tools/gopls: can show full type info instead of the name of type alias #43510

Open
donnol opened this issue Jan 5, 2021 · 1 comment
Open
Labels
FeatureRequest gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.

Comments

@donnol
Copy link

donnol commented Jan 5, 2021

I write some code like:

type Param struct {
        Name string
}

type A = Param 

func XXX(a A) {

}

when I put the cursor to the func param A, gopls show me type A = Param,how about show the origin info of Param instead?

I think it's very helpfull.

Thanks.

@gopherbot gopherbot added Tools This label describes issues relating to any tools in the x/tools repository. gopls Issues related to the Go language server, gopls. labels Jan 5, 2021
@gopherbot gopherbot added this to the Unreleased milestone Jan 5, 2021
@stamblerre stamblerre modified the milestones: Unreleased, gopls/unplanned Jan 5, 2021
@danishprakash
Copy link

Making it configurable rather than the default would make more sense imho, have we had any discussion on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FeatureRequest gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.
Projects
None yet
Development

No branches or pull requests

4 participants