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: explore UX of fillstruct for partially populated nested structs #42818

jadekler opened this issue Nov 24, 2020 · 0 comments
gopls Tools


Copy link

@jadekler jadekler commented Nov 24, 2020

Continuation of #39804, in which in cl262018 we introduce basic support for partially filled structs: how should this work for nested structs? Should all levels of the nested structs populate? Or only one level? If one level, which level, when the cursor is between two of the nested struct levels, like,

f := Foo{
  Bar: {}, // cursor is on the closing bracket: fill Foo, or Bar, or both?
@gopherbot gopherbot added Tools gopls labels Nov 24, 2020
@gopherbot gopherbot added this to the Unreleased milestone Nov 24, 2020
@stamblerre stamblerre removed this from the Unreleased milestone Nov 25, 2020
@stamblerre stamblerre added this to the gopls/unplanned milestone Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
gopls Tools
None yet

No branches or pull requests

3 participants