Suboptimal Extract Local Variable behavior #22038
Labels
area-devexp
For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.
devexp-refactoring
Issues with analysis server refactorings
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
Add the following code to a Dart file:
String silly(String s) {
return 'The string is ${s.length} characters long';
}
Then select 's.length' and select the 'Extract Local Variable' operation. The string will contain '${length}', but it would be better if it could be '$length'.
The text was updated successfully, but these errors were encountered: