Skip to content

Commit 7072019

Browse files
committed
fix(diagnostics): use formatHost.getNewLine() instead of \n
- since new lines are host OS specific
1 parent 2d3cfe3 commit 7072019

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diagnostics.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function convertDiagnostic(type: string, data: tsTypes.Diagnostic[]): IDi
2020
return data.map((diagnostic) =>
2121
{
2222
const entry: IDiagnostics = {
23-
flatMessage: tsModule.flattenDiagnosticMessageText(diagnostic.messageText, "\n"),
23+
flatMessage: tsModule.flattenDiagnosticMessageText(diagnostic.messageText, formatHost.getNewLine()),
2424
formatted: tsModule.formatDiagnosticsWithColorAndContext(data, formatHost),
2525
category: diagnostic.category,
2626
code: diagnostic.code,

0 commit comments

Comments
 (0)