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

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

donnol opened this issue Jan 5, 2021 · 1 comment

Comments

@donnol
Copy link

@donnol 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 this to the Unreleased milestone Jan 5, 2021
@stamblerre stamblerre removed this from the Unreleased milestone Jan 5, 2021
@stamblerre stamblerre added this to the gopls/unplanned milestone Jan 5, 2021
@danishprakash
Copy link

@danishprakash danishprakash commented Jan 6, 2021

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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants