-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Link back to likely declarations in "did you mean...?" error messages #25477
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
Conversation
return result; | ||
} | ||
|
||
function getSuggestionForNonexistentSymbol(location: Node | undefined, outerName: __String, meaning: SymbolFlags): string | undefined { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should have made these all internal :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. 😡
We still can?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is a breaking change..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but yes we can
This pull request provides a related span on the declaration we're suggesting in our "did you mean...?" error messages.
It currently doesn't handle union/intersection properties, or some corrections like with instance/static properties. So I guess it's a work in progress depending on how deep we want to go.
Fixes #25031
Also:
Fixes #25473
Fixes #25475