Skip to content

Commit

Permalink
Pass language version to DartFormatter(). (#1317)
Browse files Browse the repository at this point in the history
Looks like I missed one constructor call when I fixed the others in:

#1307
  • Loading branch information
munificent authored Oct 15, 2024
1 parent f59cd79 commit 75bd389
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ Future<StreamChannel<Object?>> startServer() async => spawnHybridUri(Uri(

void main() async {
final files = await Directory('lib/src').list().toList();
final formatter = DartFormatter();
final formatter = DartFormatter(
languageVersion: DartFormatter.latestLanguageVersion);

files.where((file) => file.path.endsWith('_server.dart')).forEach((file) {
final vmPath = file.path.replaceAll('_server.dart', '_server_vm.dart');
Expand Down

0 comments on commit 75bd389

Please sign in to comment.