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

Analyzer: auto-complete to offer constructions, literals and anonymous closures #31885

Open
xster opened this Issue Jan 12, 2018 · 2 comments

Comments

Projects
None yet
3 participants
@xster

xster commented Jan 12, 2018

Something like this https://dart-review.googlesource.com/c/sdk/+/21880 for functions that take a WidgetBuilder or a IndexedWidgetBuilder which are common in flutter

@bwilkerson

This comment has been minimized.

Show comment
Hide comment
@bwilkerson

bwilkerson Feb 22, 2018

Member

Server doesn't currently propose closures when completing a function-valued argument, but it could. It could also be made to propose list and map literals when appropriate. I think both are worth considering as general improvements (rather than one-off fixes).

Member

bwilkerson commented Feb 22, 2018

Server doesn't currently propose closures when completing a function-valued argument, but it could. It could also be made to propose list and map literals when appropriate. I think both are worth considering as general improvements (rather than one-off fixes).

@xster

This comment has been minimized.

Show comment
Hide comment
@xster

xster Feb 22, 2018

Ya, rather than a one off fix, I would prefer it to let argument auto-completes instantiate anything appropriate such as a function with the signature pre-filled, a constructor factor, a map literal etc.

xster commented Feb 22, 2018

Ya, rather than a one off fix, I would prefer it to let argument auto-completes instantiate anything appropriate such as a function with the signature pre-filled, a constructor factor, a map literal etc.

@xster xster changed the title from Analyzer: auto-complete arg when function takes a WidgetBuilder to Analyzer: auto-complete to offer constructions, literals and anonymous closures Feb 27, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment