diff options
author | Aleksey Kladov <[email protected]> | 2020-07-04 09:03:27 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-04 09:03:27 +0100 |
commit | caeddff5435d9cf604aac7af7b53cc4ac8bb4a13 (patch) | |
tree | e6d79d3fd1dea37c22f04c0e8315f34bef09fdcf /crates/ra_ide/src | |
parent | 5c68dd6b59cd5006a96280217bc88a6e26f90f1f (diff) |
Comments
Diffstat (limited to 'crates/ra_ide/src')
-rw-r--r-- | crates/ra_ide/src/completion/complete_dot.rs | 4 | ||||
-rw-r--r-- | crates/ra_ide/src/completion/presentation.rs | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/crates/ra_ide/src/completion/complete_dot.rs b/crates/ra_ide/src/completion/complete_dot.rs index ee4e24fca..520652a37 100644 --- a/crates/ra_ide/src/completion/complete_dot.rs +++ b/crates/ra_ide/src/completion/complete_dot.rs | |||
@@ -1,6 +1,7 @@ | |||
1 | //! FIXME: write short doc here | 1 | //! Completes references after dot (fields and method calls). |
2 | 2 | ||
3 | use hir::{HasVisibility, Type}; | 3 | use hir::{HasVisibility, Type}; |
4 | use rustc_hash::FxHashSet; | ||
4 | 5 | ||
5 | use crate::{ | 6 | use crate::{ |
6 | completion::{ | 7 | completion::{ |
@@ -9,7 +10,6 @@ use crate::{ | |||
9 | }, | 10 | }, |
10 | CompletionItem, | 11 | CompletionItem, |
11 | }; | 12 | }; |
12 | use rustc_hash::FxHashSet; | ||
13 | 13 | ||
14 | /// Complete dot accesses, i.e. fields or methods (and .await syntax). | 14 | /// Complete dot accesses, i.e. fields or methods (and .await syntax). |
15 | pub(super) fn complete_dot(acc: &mut Completions, ctx: &CompletionContext) { | 15 | pub(super) fn complete_dot(acc: &mut Completions, ctx: &CompletionContext) { |
diff --git a/crates/ra_ide/src/completion/presentation.rs b/crates/ra_ide/src/completion/presentation.rs index ee810b59f..bd48156b0 100644 --- a/crates/ra_ide/src/completion/presentation.rs +++ b/crates/ra_ide/src/completion/presentation.rs | |||
@@ -1,4 +1,5 @@ | |||
1 | //! This modules takes care of rendering various definitions as completion items. | 1 | //! This modules takes care of rendering various definitions as completion items. |
2 | //! It also handles scoring (sorting) completions. | ||
2 | 3 | ||
3 | use hir::{Docs, HasAttrs, HasSource, HirDisplay, ModPath, ScopeDef, StructKind, Type}; | 4 | use hir::{Docs, HasAttrs, HasSource, HirDisplay, ModPath, ScopeDef, StructKind, Type}; |
4 | use ra_syntax::ast::NameOwner; | 5 | use ra_syntax::ast::NameOwner; |