-
Notifications
You must be signed in to change notification settings - Fork 314
Implement local rename within the current file #990
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
Conversation
@swift-ci Please test |
b349967
to
958fd99
Compare
@swift-ci Please test |
func 1️⃣foo(a: Int) {} | ||
foo(a: 1) | ||
""", | ||
newName: "bar ( x : )", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer ignoring personally, any argument for keeping it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like, you would prefer to strip the parameter names? I feel like people should be allowed to misuse the rename tool for all the weird formatting styles they have.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, name in general. I think it would be more common for someone to accidentally have a space than to actually want it. But we can try it and see 🤷
958fd99
to
cffdada
Compare
cffdada
to
f077d10
Compare
@swift-ci Please test |
@swift-ci Please test Windows |
This allows use to re-use related identifiers when implementing rename
rdar://117822427
f077d10
to
6b5842f
Compare
@swift-ci Please test |
@swift-ci Please test Windows |
A bit of refactoring and then implements rename within the current file by using the
relatedidents
request to get the locations to rename andfind-syntactic-rename-ranges
to get the ranges to rename.rdar://117822427