Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'master' into use-format-diagnostic
  • Loading branch information
weswigham committed Jul 14, 2016
commit 3cbb62d0b9d81e55eb7665baf06c6af8dcaeffa5
1 change: 1 addition & 0 deletions src/compiler/program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -994,6 +994,7 @@ namespace ts {
export interface FormatDiagnosticsHost {
getCurrentDirectory(): string;
getCanonicalFileName(fileName: string): string;
getNewLine(): string;
}

export function formatDiagnostics(diagnostics: Diagnostic[], host: FormatDiagnosticsHost): string {
Expand Down
2 changes: 1 addition & 1 deletion src/harness/harness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,7 @@ namespace Harness {
}

export function minimalDiagnosticsToString(diagnostics: ts.Diagnostic[]) {
return ts.formatDiagnostics(diagnostics, {getCanonicalFileName, getCurrentDirectory: () => ""});
return ts.formatDiagnostics(diagnostics, {getCanonicalFileName, getCurrentDirectory: () => "", getNewLine: () => Harness.IO.newLine()});
}

export function getErrorBaseline(inputFiles: TestFile[], diagnostics: ts.Diagnostic[]) {
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.