Unify semantic differences between produceDiagnostics and non-producing checkers #28950
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
To allow them do be able to be used interchangeably for equivalent API results. The core of the change is making it to that we always resolve to an
unknownSignature
on call resolution failure, but also making it possible for the services andgetContextualType
APIs to recover data on what the "best" signatures were (without letting the types from those signatures leak into the type heirarchy of the program).The biggest changes are that now when a call has an error quick info shows its return type and arguments as
any
, rather than the return type of the "best" signature.