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

Port Extract Method fixes from master #18518

Merged
merged 10 commits into from
Sep 20, 2017

Conversation

amcasey
Copy link
Member

@amcasey amcasey commented Sep 16, 2017

Built on top of #18516. If we don't merge that PR, this one will have to be redone since there are merge conflicts and one of these fixes is specific to type parameters.

@msftclas
Copy link

@amcasey,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@amcasey
Copy link
Member Author

amcasey commented Sep 18, 2017

Hold off on reviewing this - I have to rebase away #18516.

@amcasey
Copy link
Member Author

amcasey commented Sep 18, 2017

I dropped everything about type parameters, but kept the fourslash changes to make merging easier.

Copy link
Contributor

@mhegazy mhegazy left a comment

Choose a reason for hiding this comment

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

We need to remove the failing test file for now.

@amcasey
Copy link
Member Author

amcasey commented Sep 20, 2017

Turns out it was merged in in 387fc20. I'll rebase and fix it.

amcasey and others added 10 commits September 19, 2017 17:31
Check `scope.name` when trying to extract from an anon class

(cherry picked from commit c7b4ed3)
Handle the combination of a write and a void return

(cherry picked from commit 02cfb81)
Simplify and correct PermittedJumps computation

(cherry picked from commit deefb01)
Improve insertion position of extracted methods

(cherry picked from commit 40e4591)
Call getShorthandAssignmentValueSymbol rather than getSymbolAtLocation

(cherry picked from commit aade971)
Only introduce return properties at the top level

(cherry picked from commit 288a57c)
Forbid extraction of empty spans

(cherry picked from commit be5c00f)
Re-enable extraction of a single token

(cherry picked from commit 47b61ac)
@amcasey amcasey merged commit e9a9d2c into microsoft:release-2.5 Sep 20, 2017
@amcasey amcasey deleted the ExtractMethodFixes25 branch September 20, 2017 17:58
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants