Skip to content

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

Merged
sandersn merged 2 commits intomicrosoft:mainfrom
a-tarasyuk:fix/49058
May 16, 2022
Merged

fix(49058): Language service crashes for static member in class with unresolved base members#49059
sandersn merged 2 commits intomicrosoft:mainfrom
a-tarasyuk:fix/49058

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
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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