Skip to content

Commit

Permalink
Comment position feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
weswigham committed Nov 11, 2020
1 parent 3307cff commit 1f27a71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 1f27a71

Please sign in to comment.