Ignore related info in diagnostic deduplication (#50309)

* Ignore related info in diagnostic deduplication

* Add another test
This commit is contained in:
Andrew Branch
2022-08-16 09:28:59 -07:00
committed by GitHub
parent f24f74eb89
commit 330e33cdda
5 changed files with 14 additions and 14 deletions

View File

@@ -3944,7 +3944,7 @@ namespace ts {
diagnostics = nonFileDiagnostics;
}
insertSorted(diagnostics, diagnostic, compareDiagnostics);
insertSorted(diagnostics, diagnostic, compareDiagnosticsSkipRelatedInformation);
}
function getGlobalDiagnostics(): Diagnostic[] {