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

Duplicate insertion of struct's field completion #17179

Closed
bzy-debug opened this issue May 3, 2024 · 1 comment · Fixed by #17192
Closed

Duplicate insertion of struct's field completion #17179

bzy-debug opened this issue May 3, 2024 · 1 comment · Fixed by #17192
Assignees
Labels
A-completion autocompletion C-bug Category: bug

Comments

@bzy-debug
Copy link

bzy-debug commented May 3, 2024

rust-analyzer version: rust-analyzer version: 0.3.1940-standalone (f216be4 2024-04-27)

rustc version: rustc 1.77.2 (25ef9e3d8 2024-04-09)

editor or extension: vscode v0.3.1940

relevant settings: none

repository link (if public, optional): none

code snippet to reproduce:

struct S(i32);
fn main() {
    let s = S(1);
    s.0 // choose 0 in completion
}

choosing completion of 0 gets 0 inserted again:

Screen.Recording.2024-05-03.at.23.48.40.mov

expect behavior: nothing is inserted

@bzy-debug bzy-debug added the C-bug Category: bug label May 3, 2024
@Veykril Veykril added the A-completion autocompletion label May 3, 2024
@roife
Copy link
Member

roife commented May 6, 2024

@rustbot claim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-completion autocompletion C-bug Category: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants