Autocomplete for fields of structs is not working(as expected) #12857
Labels
A-completion
autocompletion
C-bug
Category: bug
E-easy
E-has-instructions
Issue has some instructions and pointers to code to get started
Uh oh!
There was an error while loading. Please reload this page.
Text Editor: VS Code
If I'm typing I field of struct I need self to be autocompleted for me by rust-analyzer,
Im getting the suggestion as
self.field
but after accepting the suggestion it is being replaced byfield
(self
is missing).Before:

Hint is

self.length
and that is correctAfter:
It's being replaced by
length
notself.length
.rust-analyzer version: 0.4.1133-standalone (30c4db1 2022-07-19)
rustc version: rustc 1.64.0-nightly (7665c3543 2022-07-06)
relevant settings: everything default
The text was updated successfully, but these errors were encountered: