**Describe the bug** Given the following code, placing the cursor by the first `x` and hitting F2 shows "The element can't be renamed". Placing the cursor by the second `x` and hitting F2 allows the variable to be renamed. ```code for (final x in []) { print(x); } ``` **Please complete the following information:** - Operating System and version: Fedora Linux - VS Code version: 1.79.2 - Dart extension version: 3.68.0 - Dart/Flutter SDK version: Dart 3.0.5 / Flutter 3.10.5 - Target device (if the issue relates to Flutter debugging): N/A
Activity
DanTup commentedon Jul 5, 2023
This one has already been fixed via dart-lang/sdk#52149 and should show up in the next SDK release.
lukehutch commentedon Jul 5, 2023
Thanks, Dan!