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

Prefer symbol references in InlineRename #55747

Merged
merged 2 commits into from
Aug 20, 2021

Conversation

ryzngard
Copy link
Contributor

When renaming in comments/strings, if a rename location is already found in symbol references we should prefer that usage. This changes the order we add to the renamelocations hash set to reflect that

Fixes #54294

Copy link
Contributor

@davidwengier davidwengier left a comment

Choose a reason for hiding this comment

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

Tests? Being unfamiliar with the code, the implications of this are a mystery to me.

But I trust you either way :shipit:

@ryzngard
Copy link
Contributor Author

Tests? Being unfamiliar with the code, the implications of this are a mystery to me.

But I trust you either way :shipit:

Test incoming, once I figure out the best way to do it. I can do in an integration test easy enough, figuring out how to unit test this though :(

@ryzngard ryzngard merged commit ab54a0f into dotnet:main Aug 20, 2021
@ghost ghost added this to the Next milestone Aug 20, 2021
@dibarbet dibarbet modified the milestones: Next, 17.0.P4 Aug 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Rename" doesn't rename the type in a comment if I have check "Include Comments"
3 participants