Skip to content

fix(49058): Language service crashes for static member in class with unresolved base members #49059

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

Merged
merged 2 commits into from
May 16, 2022

Conversation

a-tarasyuk
Copy link
Contributor

Fixes #49058

@typescript-bot typescript-bot added the For Milestone Bug PRs that fix a bug with a specific milestone label May 11, 2022
Copy link
Member

@sandersn sandersn left a comment

Choose a reason for hiding this comment

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

I think this is a good fix for the crash. We should correct getExportsOfModule -> getExportsOfSymbol at some point. @DanielRosenwasser do you think we should fix that in this PR?

Copy link
Member

@sandersn sandersn left a comment

Choose a reason for hiding this comment

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

Need to resolve the static side of the class differently and use normal property lookup afterwards.

@a-tarasyuk a-tarasyuk requested a review from sandersn May 16, 2022 16:35
@sandersn sandersn merged commit 0df9462 into microsoft:main May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Milestone Bug PRs that fix a bug with a specific milestone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Language service crashes for static member in class with unresolved base members
4 participants