Skip to content

[SourceKit] Only report textual results inside comments and strings from syntactic rename ranges #71966

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

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Feb 29, 2024

No description provided.

@ahoppen
Copy link
Member Author

ahoppen commented Feb 29, 2024

@swift-ci Please smoke test

@ahoppen ahoppen marked this pull request as ready for review February 29, 2024 04:18
// from the index. Since we don't, they are likely unrelated symbols that
// happen to have the same name. Don't return them as matching ranges.
// We only want to include these textual matches inside comments and string
// literals. All other matches inside are likely bugus results.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// literals. All other matches inside are likely bugus results.
// literals. All other matches inside are likely bogus results.

Though I had a good laugh at bugus, I kind of like it.

@bnbarham
Copy link
Contributor

@swift-ci please build toolchain macOS platform

@ahoppen ahoppen force-pushed the ahoppen/dont-rename-textual-code-results branch from 36ff5cf to 4f87317 Compare February 29, 2024 21:31
@ahoppen
Copy link
Member Author

ahoppen commented Feb 29, 2024

@swift-ci Please smoke test

@ahoppen
Copy link
Member Author

ahoppen commented Feb 29, 2024

@swift-ci Please build toolchain macOS

@ahoppen ahoppen force-pushed the ahoppen/dont-rename-textual-code-results branch from 4f87317 to 63aeede Compare February 29, 2024 23:37
@ahoppen
Copy link
Member Author

ahoppen commented Feb 29, 2024

@swift-ci Please smoke test

@ahoppen ahoppen merged commit b11ab28 into swiftlang:main Mar 1, 2024
@ahoppen ahoppen deleted the ahoppen/dont-rename-textual-code-results branch March 1, 2024 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants