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.
1 parent 8e4d9b8 commit 349dfc7Copy full SHA for 349dfc7
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