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
switch expression snippet does not show after "return" #4843
Comments
While trying to reproduce this, I noticed some odd behaviour where the items shown in completion can change for the same content. I'll investigate that first, because it might be the cause of some of the issue here: |
Ignore that - my bug was caused by another existing known issue and unrelated to this. With that resolved, using the latest SDKs I can only reproduce your second issue (in the return statement). The first example seems to work fine: Can you confirm your Dart/Flutter SDK version? (and I'll look into the |
Just updated my Dart SDK from version 3.1.5 to 3.2.0
With version 3.2.0 the |
Great, thanks for confirming. I have a fix open for the return issue at https://dart-review.googlesource.com/c/sdk/+/338401. |
…ements Fixes Dart-Code/Dart-Code#4843 Change-Id: I59c41c2ef6439583465a729785fe379c03583cce Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338401 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Keerti Parthasarathy <keertip@google.com> Reviewed-by: Keerti Parthasarathy <keertip@google.com>
Fixed by dart-lang/sdk@7d3020f. The change is in the analysis server so will ship in a future Dart/Flutter SDK. |
In Dart Code
v3.76.1
, the auto-completion menu shows the entryswitch expression
when defining a variable:It would be useful, if the entry
switch expression
is presented whenever an expression is expected.For example in the following circumstances:
The text was updated successfully, but these errors were encountered: