We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e426257 commit d409155Copy full SHA for d409155
1 file changed
src/compiler/core.ts
@@ -1849,12 +1849,12 @@ namespace ts {
1849
comparer(a[key], b[key]);
1850
}
1851
1852
- function getDiagnosticFileName(diagnostic: Diagnostic): string {
+ function getDiagnosticFilePath(diagnostic: Diagnostic): string {
1853
return diagnostic.file ? diagnostic.file.path : undefined;
1854
1855
1856
export function compareDiagnostics(d1: Diagnostic, d2: Diagnostic): Comparison {
1857
- return compareStringsCaseSensitive(getDiagnosticFileName(d1), getDiagnosticFileName(d2)) ||
+ return compareStringsCaseSensitive(getDiagnosticFilePath(d1), getDiagnosticFilePath(d2)) ||
1858
compareValues(d1.start, d2.start) ||
1859
compareValues(d1.length, d2.length) ||
1860
compareValues(d1.code, d2.code) ||
0 commit comments