Comment position feedback

This commit is contained in:
Wesley Wigham
2020-11-11 13:02:09 -08:00
parent 2c7c62d7fa
commit 44595042b2

View File

@@ -1091,8 +1091,8 @@ namespace ts {
}
}
function errorOrSuggestion(isError: boolean, location: Node, message: DiagnosticMessage | DiagnosticMessageChain, arg0?: string | number, arg1?: string | number, arg2?: string | number, arg3?: string | number): void {
// Pseudo-synthesized input node
if (location.pos < 0 || location.end < 0) {
// Psuedo-synthesized input node
if (!isError) {
return; // Drop suggestions (we have no span to suggest on)
}