We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cb32e26 + 349dfc7 commit b4d652aCopy full SHA for b4d652a
crates/ide-completion/src/render/function.rs
@@ -85,7 +85,9 @@ fn render(
85
item.ref_match(ref_match, path_ctx.path.syntax().text_range().start());
86
}
87
FuncKind::Method(DotAccess { receiver: Some(receiver), .. }, _) => {
88
- item.ref_match(ref_match, receiver.syntax().text_range().start());
+ if let Some(original_expr) = completion.sema.original_ast_node(receiver.clone()) {
89
+ item.ref_match(ref_match, original_expr.syntax().text_range().start());
90
+ }
91
92
_ => (),
93
0 commit comments