Skip to content

[5.5][Refactorings] Add cursor refactorings for the start of the range #38983

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 1 commit into from
Aug 25, 2021

Conversation

bnbarham
Copy link
Contributor

Cherry-pick #38920


When a range is a single expression/statement/decl or part of
expression, also return cursor based refactorings for the start of the
range.

This is a stop gap until the available refactorings are properly fixed
to be more lenient in general - the current fix is a little odd as eg.
if all of foo.bar() is selected, rename will be returned as an
available refactoring for foo. Still an improvement over completely
missing cursor based refactorings, however.

Resolves rdar://82060063

When a range is a single expression/statement/decl or part of
expression, also return cursor based refactorings for the start of the
range.

This is a stop gap until the available refactorings are properly fixed
to be more lenient in general - the current fix is a little odd as eg.
if all of `foo.bar()` is selected, rename will be returned as an
available refactoring for `foo`. Still an improvement over completely
missing cursor based refactorings, however.

Resolves rdar://82060063
@bnbarham bnbarham added the r5.5 label Aug 20, 2021
@bnbarham bnbarham requested a review from akyrtzi August 20, 2021 21:55
@bnbarham bnbarham requested a review from a team as a code owner August 20, 2021 21:55
@bnbarham
Copy link
Contributor Author

@swift-ci please test

@bnbarham bnbarham merged commit 3134976 into release/5.5 Aug 25, 2021
@bnbarham bnbarham deleted the cherry-rdar82060063 branch August 25, 2021 04:48
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.5 labels Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants