-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
IDE tooling (analysis server) implementation for named arguments anywhere #47578
Comments
Fyi @jwren for impact on the Dart IntelliJ plugin. |
@devoncarew From the tooling and completion standpoint this is an unfortunate change, previously we could be smart enough to know the types of each required parameter before recommending the named arguments, now they'll be conflated. |
I don't think it will be that bad. If the user is trying to enter a new
argument then it can either be a positional argument or a named argument.
We won't know which one, but if it's a positional argument we can still
know the context type and if it's a named argument then we can still
suggest all of the names that have not already been used for positional
arguments. We just have to suggest both sets of possible completions when
both are valid. Not ideal, but hopefully not too bad.
…On Fri, Oct 29, 2021, 7:06 PM Jaime Wren ***@***.***> wrote:
@devoncarew <https://github.com/devoncarew> From the tooling and
completion standpoint this is an unfortunate change, previously we could be
smart enough to know the types of each required parameter before
recommending the named arguments, now they'll be conflated.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#47578 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABMR5K7OEZKCROUUNXSFRETUJNHITANCNFSM5HAEWTLA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
FYI, the IntelliJ specific pieces are tracked here: #47592. |
Currently we are not very aggressive at showing completions that match the type so I don't expect much of a regression. |
Bug: #48067, #47578 Change-Id: Iaef317459c7e6901296475163959ad92a6c880b2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/231070 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Samuel Rawlins <srawlins@google.com>
@jacob314 are we complete with this work? |
@bwilkerson do we need to move some of this work to 2.18? |
I did all pieces that I wanted to do, or have knowledge about. |
I had a look through |
It's just a general list of features to check. |
This is the analysis server work for the named arguments anywhere feature.
For addition information, see
The following is a list of the individual features that need to be considered.
The text was updated successfully, but these errors were encountered: