Skip to content

Unify semantic differences between produceDiagnostics and non-producing checkers #28950

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

weswigham
Copy link
Member

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 and getContextualType 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.

@weswigham
Copy link
Member Author

cc @ahejlsberg This is a slightly more nuanced alternative to #28564 that produces fewer changes in most of the baselines.

@sandersn
Copy link
Member

@weswigham now that #28564's redo is merged, I think this can be closed. Am I right?

@weswigham
Copy link
Member Author

Yep, this was an alternative to that which went in the "make services more like command line" direction, rather than the other way around.

@weswigham weswigham closed this Feb 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Milestone Bug PRs that fix a bug with a specific milestone
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants