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 source_range for INT_NUMBER in completion #17192

Merged
merged 1 commit into from
May 7, 2024

Conversation

roife
Copy link
Member

@roife roife commented May 6, 2024

fix #17179.

Previously r-a use TextRange::empty(self.position.offset) as source_range for INT_NUMBER, so the text_edit would always be an insertion, which results in #17179.

This PR changed it by using text_range of original_token (same as IDENT).

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 6, 2024
@lnicola
Copy link
Member

lnicola commented May 7, 2024

Thanks!

@bors r+

@bors
Copy link
Collaborator

bors commented May 7, 2024

📌 Commit 435e83d has been approved by lnicola

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented May 7, 2024

⌛ Testing commit 435e83d with merge 9ec04ed...

@bors
Copy link
Collaborator

bors commented May 7, 2024

☀️ Test successful - checks-actions
Approved by: lnicola
Pushing 9ec04ed to master...

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.

Duplicate insertion of struct's field completion
4 participants