Swap the Tsetse runner diagnostic generation to use toDiagnosticWithStringifiedFix. This should be a noop, as no ConformancePatternRule is enabled, and they're the only ones with fixes. PiperOrigin-RevId: 269284571
diff --git a/internal/tsetse/runner.ts b/internal/tsetse/runner.ts index 826131e..a2b76d4 100644 --- a/internal/tsetse/runner.ts +++ b/internal/tsetse/runner.ts
@@ -40,8 +40,12 @@ } getDiagnostics(sourceFile: ts.SourceFile) { + // Tsetse, in its plugin form, outputs ts.Diagnostic that don't make use + // of the potential suggested fixes Tsetse generates. These diagnostics are + // however displayed in context: we can therefore stringify any potential + // suggested fixes in the error message, so they don't go to waste. return this.checker.execute(sourceFile) - .map(failure => failure.toDiagnostic()); + .map(failure => failure.toDiagnosticWithStringifiedFix()); } }