-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Code completing the value of a named argument doesn't show expected option: enum values #24759
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
Comments
Work in progress. PR to be uploaded soon. |
https://codereview.chromium.org/1881733002/- gets us closer to having only the correct kind of thing suggested in some named argument list. There is no such justifyContext any more. @sethladd what kind of annotation do you want respected? Is it Flutter specific? I don't think we have any such support in code completion yet. |
@devoncarew Can you assist here? What kind of annotation was this before the API went away? Was it an enum, something else? Can you give me an example/sample that works with APIs today? |
@jwren, jup, looks like this code has changed. The new named parameter will be something like |
So, the problem is mostly likely that named params that are enums don't suggest the enum values. |
Sorry, I missed your ping.
The type annotations on the parameters. In the example above,
Nope. Just a comment/suggestion around using Dart's type annotations. |
…also, filter out only the correct enum types in named arguments. BUG=#24759 Review URL: https://codereview.chromium.org/1989393002 .
Looks like https://codereview.chromium.org/1989393002 was committed. Can we close this issue? |
Thanks! |
Here's the code in question:
Put your cusor after
justifyContent:
and try to code complete.Expected: Show me
FlexJustifyContent
. That's what justifyContent is annotated for.Actual: a bunch of options, none of which make sense in this context.
Hope that helps. Thanks!
The text was updated successfully, but these errors were encountered: