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

lsp: fix completion_item something_to_resolve not being a latch to true #18247

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

jhgg
Copy link
Contributor

@jhgg jhgg commented Oct 5, 2024

while looking at #18245 i noticed that something_to_resolve could technically flap between true -> false if some subsequent fields that were requested to be resolved were empty.

this fixes that by using |= instead of = when assigning to something_to_resolve which will prevent it from going back to false once set.

although some cases it's simply assigning to true i opted to continue to use |= there for uniformity sake. but happy to change those back to ='s.

cc @SomeoneToIgnore

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 5, 2024
@SomeoneToIgnore
Copy link
Contributor

Thank you for the catch, looks good to me.

@SomeoneToIgnore
Copy link
Contributor

@Veykril would you mind a review?

@Veykril
Copy link
Member

Veykril commented Oct 9, 2024

@bors r+

@bors
Copy link
Contributor

bors commented Oct 9, 2024

📌 Commit bab2a6e has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Oct 9, 2024

⌛ Testing commit bab2a6e with merge 7692c82...

@bors
Copy link
Contributor

bors commented Oct 9, 2024

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 7692c82 to master...

1 similar comment
@bors
Copy link
Contributor

bors commented Oct 9, 2024

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 7692c82 to master...

@bors bors merged commit 7692c82 into rust-lang:master Oct 9, 2024
11 checks passed
@bors
Copy link
Contributor

bors commented Oct 9, 2024

👀 Test was successful, but fast-forwarding failed: 422 Changes must be made through a pull request.

@jhgg jhgg deleted the lsp/fix-something-to-resolve branch October 10, 2024 00:57
bors added a commit to rust-lang-ci/rust that referenced this pull request Nov 26, 2024
…vidbarsky

[stable(not yet) backport] Revert r-a completions breakage

This PR revers recent completion-related changes in r-a, which caused nvim and helix to malfunction.
Changes reverted:
1. rust-lang/rust-analyzer#18167
2. rust-lang/rust-analyzer#18247
3. rust-lang/rust-analyzer#18503

See rust-lang/rust-analyzer#18503 (comment) for more context

cc `@BoxyUwU`
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.

5 participants