diff options
Diffstat (limited to 'crates/ra_ide/src')
-rw-r--r-- | crates/ra_ide/src/completion/complete_attribute.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/crates/ra_ide/src/completion/complete_attribute.rs b/crates/ra_ide/src/completion/complete_attribute.rs index 20e6edc17..4eaaa0b6f 100644 --- a/crates/ra_ide/src/completion/complete_attribute.rs +++ b/crates/ra_ide/src/completion/complete_attribute.rs | |||
@@ -3,15 +3,17 @@ | |||
3 | //! This module uses a bit of static metadata to provide completions | 3 | //! This module uses a bit of static metadata to provide completions |
4 | //! for built-in attributes. | 4 | //! for built-in attributes. |
5 | 5 | ||
6 | use super::completion_context::CompletionContext; | ||
7 | use super::completion_item::{CompletionItem, CompletionItemKind, CompletionKind, Completions}; | ||
8 | use ast::AttrInput; | ||
9 | use ra_syntax::{ | 6 | use ra_syntax::{ |
10 | ast::{self, AttrKind}, | 7 | ast::{self, AttrInput, AttrKind}, |
11 | AstNode, SyntaxKind, | 8 | AstNode, SyntaxKind, |
12 | }; | 9 | }; |
13 | use rustc_hash::FxHashSet; | 10 | use rustc_hash::FxHashSet; |
14 | 11 | ||
12 | use crate::completion::{ | ||
13 | completion_context::CompletionContext, | ||
14 | completion_item::{CompletionItem, CompletionItemKind, CompletionKind, Completions}, | ||
15 | }; | ||
16 | |||
15 | pub(super) fn complete_attribute(acc: &mut Completions, ctx: &CompletionContext) -> Option<()> { | 17 | pub(super) fn complete_attribute(acc: &mut Completions, ctx: &CompletionContext) -> Option<()> { |
16 | let attribute = ctx.attribute_under_caret.as_ref()?; | 18 | let attribute = ctx.attribute_under_caret.as_ref()?; |
17 | 19 | ||