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

preserve this when extracting functions #41992

Merged
merged 6 commits into from
Apr 7, 2022

Conversation

Zzzen
Copy link
Contributor

@Zzzen Zzzen commented Dec 16, 2020

Fixes #39931

Previously, this is assumed to be a reference to class. Now we can detect whether this is referring to a class or function. in the latter case, we need to pass this to the new function.

@typescript-bot typescript-bot added the For Backlog Bug PRs that fix a backlog bug label Dec 16, 2020
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.

Quick suggestion about naming enum member

src/services/refactors/extractSymbol.ts Outdated Show resolved Hide resolved
@sandersn
Copy link
Member

Do you want to keep working on this? Otherwise I'd like to close it to reduce the number of open PRs.

@Zzzen
Copy link
Contributor Author

Zzzen commented Apr 4, 2022

Yes, I will keep working on this.

Copy link
Member

@jakebailey jakebailey left a comment

Choose a reason for hiding this comment

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

This seems fine to me, no pun intended.

@sandersn sandersn merged commit f4b99ea into microsoft:main Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Backlog Bug PRs that fix a backlog bug
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

this is not preserved when extracted to function in module scope
5 participants