diff options
author | Aleksey Kladov <[email protected]> | 2019-01-25 11:21:14 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-25 11:21:14 +0000 |
commit | 87ac5f5b36602922bb45b3a5343010fa305089eb (patch) | |
tree | 5a692f559ba36aa5620bf1e7fe2ac0827ad6c25a /crates/ra_ide_api | |
parent | 47e553667851bfcdda0317a27c8304dbc9797f32 (diff) |
use positional ids for fields
Diffstat (limited to 'crates/ra_ide_api')
-rw-r--r-- | crates/ra_ide_api/src/completion/complete_dot.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_dot.rs b/crates/ra_ide_api/src/completion/complete_dot.rs index 6a9358d33..060a46c5e 100644 --- a/crates/ra_ide_api/src/completion/complete_dot.rs +++ b/crates/ra_ide_api/src/completion/complete_dot.rs | |||
@@ -34,10 +34,10 @@ fn complete_fields(acc: &mut Completions, ctx: &CompletionContext, receiver: Ty) | |||
34 | CompletionItem::new( | 34 | CompletionItem::new( |
35 | CompletionKind::Reference, | 35 | CompletionKind::Reference, |
36 | ctx.source_range(), | 36 | ctx.source_range(), |
37 | field.name().to_string(), | 37 | field.name(ctx.db).to_string(), |
38 | ) | 38 | ) |
39 | .kind(CompletionItemKind::Field) | 39 | .kind(CompletionItemKind::Field) |
40 | .set_detail(field.ty(ctx.db).map(|ty| ty.subst(substs).to_string())) | 40 | .detail(field.ty(ctx.db).subst(substs).to_string()) |
41 | .add_to(acc); | 41 | .add_to(acc); |
42 | } | 42 | } |
43 | } | 43 | } |