diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-02-24 18:56:49 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-02-24 18:56:49 +0000 |
commit | 5a684099e9aa3482b408002030fafe1dcd0fa9a9 (patch) | |
tree | 20e86fbc586b350c336277d2b0886a60f9844de8 /crates/ra_ide_api/src/completion.rs | |
parent | 67528c4b3943a2027839a25770d079132a9ea130 (diff) | |
parent | d5f6a5f5e29df3005533502b49f78daae314ac5b (diff) |
Merge #893
893: Completion presentation r=matklad a=matklad
Just moves completion code around a bit, to keep logic for producing completions and logic for rendering them into completion items separate.
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src/completion.rs')
-rw-r--r-- | crates/ra_ide_api/src/completion.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ra_ide_api/src/completion.rs b/crates/ra_ide_api/src/completion.rs index d92e01bfb..fbfd7e3e7 100644 --- a/crates/ra_ide_api/src/completion.rs +++ b/crates/ra_ide_api/src/completion.rs | |||
@@ -1,5 +1,6 @@ | |||
1 | mod completion_item; | 1 | mod completion_item; |
2 | mod completion_context; | 2 | mod completion_context; |
3 | mod presentation; | ||
3 | 4 | ||
4 | mod complete_dot; | 5 | mod complete_dot; |
5 | mod complete_struct_literal; | 6 | mod complete_struct_literal; |
@@ -20,7 +21,10 @@ use crate::{ | |||
20 | completion_item::{Completions, CompletionKind}, | 21 | completion_item::{Completions, CompletionKind}, |
21 | completion_context::CompletionContext, | 22 | completion_context::CompletionContext, |
22 | }, | 23 | }, |
24 | |||
23 | }; | 25 | }; |
26 | #[cfg(test)] | ||
27 | use crate::completion::completion_item::{do_completion, check_completion}; | ||
24 | 28 | ||
25 | pub use crate::completion::completion_item::{CompletionItem, CompletionItemKind, InsertTextFormat}; | 29 | pub use crate::completion::completion_item::{CompletionItem, CompletionItemKind, InsertTextFormat}; |
26 | 30 | ||