Index: pkg/analysis_server/lib/src/edit/edit_domain.dart |
diff --git a/pkg/analysis_server/lib/src/edit/edit_domain.dart b/pkg/analysis_server/lib/src/edit/edit_domain.dart |
index 8bb2432dc8831a2d708538ce8898bb5637a68bc0..ee26dd8b8dc33af59c44b9d9a7400392fbe8ef56 100644 |
--- a/pkg/analysis_server/lib/src/edit/edit_domain.dart |
+++ b/pkg/analysis_server/lib/src/edit/edit_domain.dart |
@@ -91,7 +91,7 @@ class EditDomainHandler implements RequestHandler { |
isCompilationUnit: true, |
selectionStart: start, |
selectionLength: length); |
- DartFormatter formatter = new DartFormatter(); |
+ DartFormatter formatter = new DartFormatter(pageWidth: params.lineLength); |
SourceCode formattedResult; |
try { |
formattedResult = formatter.formatSource(code); |