Skip to content

Commit 6c795d3

Browse files
committed
Include "correction" in error messages
Fixes #1555.
1 parent ccf8847 commit 6c795d3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/providers/dart_diagnostic_provider.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ export class DartDiagnosticProvider {
3333
diag.source = "dart";
3434
diag.tags = DartDiagnosticProvider.getTags(error);
3535
diag.type = error.type;
36+
if (error.correction)
37+
diag.message += `\n${error.correction}`;
3638
return diag;
3739
}
3840

0 commit comments

Comments
 (0)