mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Convert related spans to message chains
This commit is contained in:
1 parent
ba9d8e2e81
commit
47bbc9546e
37 files changed
+928
-464
No files matched your search
@@ -21655,8 +21655,10 @@ namespace ts {
|
||||
i++;
|
||||
}
|
||||
|
||||
const related = max > 1 ? allDiagnostics[minIndex] : flatten(allDiagnostics);
|
||||
diagnostics.add(createDiagnosticForNodeFromMessageChain(node, chainDiagnosticMessages(undefined, Diagnostics.No_overload_matches_this_call), related));
|
||||
const related = map(
|
||||
max > 1 ? allDiagnostics[minIndex] : flatten(allDiagnostics),
|
||||
d => typeof d.messageText === 'string' ? (d as DiagnosticMessageChain) : d.messageText);
|
||||
diagnostics.add(createDiagnosticForNodeFromMessageChain(node, chainDiagnosticMessages(related, Diagnostics.No_overload_matches_this_call)));
|
||||
}
|
||||
}
|
||||
else if (candidateForArgumentArityError) {
|
||||
|
||||
Reference in new issue
Block a user