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

fix: do not offer completions within macro strings #18832

Merged

Conversation

vishruth-thimmaiah
Copy link
Contributor

@vishruth-thimmaiah vishruth-thimmaiah commented Jan 3, 2025

Fixes #17479

This PR disables completions within strings in proc macros.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 3, 2025
@vishruth-thimmaiah vishruth-thimmaiah force-pushed the fix_string_comp branch 2 times, most recently from 54a3002 to 314c82a Compare January 4, 2025 19:41
@vishruth-thimmaiah vishruth-thimmaiah marked this pull request as ready for review January 4, 2025 19:47
@ChayimFriedman2
Copy link
Contributor

Please add a test. You can look at existing tests in https://github.com/rust-lang/rust-analyzer/tree/master/crates/ide-completion/src/tests.

@ChayimFriedman2
Copy link
Contributor

Thanks!

@ChayimFriedman2 ChayimFriedman2 added this pull request to the merge queue Jan 7, 2025
Merged via the queue into rust-lang:master with commit 2ffdbc3 Jan 7, 2025
9 checks passed
@vishruth-thimmaiah vishruth-thimmaiah deleted the fix_string_comp branch January 7, 2025 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Macro string literal completion edits not replacing prior text
4 participants