mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Add config setting for self-on-the-fly
This commit is contained in:
parent
4507382f2e
commit
fb7105a580
10 changed files with 27 additions and 2 deletions
|
@ -139,7 +139,7 @@ impl<'a> Render<'a> {
|
|||
let mut item = CompletionItem::new(
|
||||
CompletionKind::Reference,
|
||||
self.ctx.source_range(),
|
||||
receiver.map_or_else(|| name.to_string(), |receiver| format!("{}.{}", receiver, name)),
|
||||
receiver.map_or_else(|| name.clone(), |receiver| format!("{}.{}", receiver, name)),
|
||||
);
|
||||
item.kind(SymbolKind::Field)
|
||||
.detail(ty.display(self.ctx.db()).to_string())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue