Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit 5904ddd

Browse files
committed
fix: don't override diagnostic source if provided
1 parent 4004060 commit 5904ddd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diagnostics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function convertTsDiagnostic(diagnostic: ts.Diagnostic): Diagnostic {
1515
message: text,
1616
severity: convertDiagnosticCategory(diagnostic.category),
1717
code: diagnostic.code,
18-
source: 'ts'
18+
source: diagnostic.source || 'ts'
1919
};
2020
}
2121

0 commit comments

Comments
 (0)