-
Notifications
You must be signed in to change notification settings - Fork 344
Closed
Labels
in editorRelates to code editing or language featuresRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serverSomething to be fixed in the Dart analysis serveris enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.An enhancement or improvement that should be listed in release notes but is not a bug fix.
Milestone
Description
Describe the bug
Assign value to new local variable still makes var when prefer_final_locals present in lint rules
var i = 1 + 2 + 3;To Reproduce
- Create project:
dart create my_dart - Add code:
1 + 2 + 3 - Refactor code: press keys
CMD + .
Expected behavior
final i = 1 + 2 + 3;Versions (please complete the following information):
- VS Code version: 1.59.1
- Dart extension version: v3.25.1
- Dart/Flutter SDK version: flutter-2.2.3
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
in editorRelates to code editing or language featuresRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serverSomething to be fixed in the Dart analysis serveris enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.An enhancement or improvement that should be listed in release notes but is not a bug fix.
