Skip to content
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

Link back to likely declarations in "did you mean...?" error messages #25477

Merged
merged 8 commits into from
Jul 6, 2018

Conversation

DanielRosenwasser
Copy link
Member

@DanielRosenwasser DanielRosenwasser commented Jul 6, 2018

This pull request provides a related span on the declaration we're suggesting in our "did you mean...?" error messages.

thingyoumeantwasdeclaredhere

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

return result;
}

function getSuggestionForNonexistentSymbol(location: Node | undefined, outerName: __String, meaning: SymbolFlags): string | undefined {
Copy link
Contributor

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 :(

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah. 😡

We still can?

Copy link
Contributor

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but yes we can

@DanielRosenwasser DanielRosenwasser merged commit ea73ee7 into master Jul 6, 2018
@DanielRosenwasser DanielRosenwasser deleted the youProbablyMeantThisDeclaration branch July 6, 2018 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants