We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 30c4db1 + 15016bc commit 0e71356Copy full SHA for 0e71356
crates/ide-completion/src/render.rs
@@ -134,8 +134,10 @@ pub(crate) fn render_field(
134
.lookup_by(name.clone());
135
item.insert_text(escaped_name);
136
if let Some(receiver) = &dot_access.receiver {
137
- if let Some(ref_match) = compute_ref_match(ctx.completion, ty) {
138
- item.ref_match(ref_match, receiver.syntax().text_range().start());
+ if let Some(original) = ctx.completion.sema.original_ast_node(receiver.clone()) {
+ if let Some(ref_match) = compute_ref_match(ctx.completion, ty) {
139
+ item.ref_match(ref_match, original.syntax().text_range().start());
140
+ }
141
}
142
143
item.build()
0 commit comments