Closed
Description
struct Foo {
bar: u32,
}
fn foo(f: Foo) {
let _: &u32 = f.$0;
// should complete to &f.bar
// actually completes to f.&bar
}
Perhaps ref_match
should return a new CompletionItem
? Because right now to_proto
is trying to make sense of how to apply the reference, but that seems like it should be the responsibility of the ide_completion
crate.
I'm not going to have time to look at this too much further until early next week, so if anyone else is interested please feel free to take this one. Otherwise I'll give it a shot in a week or so.