-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
A-completionautocompletionautocompletionS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now
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.
Metadata
Metadata
Assignees
Labels
A-completionautocompletionautocompletionS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now