aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/completion.rs
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-02-24 18:56:49 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-02-24 18:56:49 +0000
commit5a684099e9aa3482b408002030fafe1dcd0fa9a9 (patch)
tree20e86fbc586b350c336277d2b0886a60f9844de8 /crates/ra_ide_api/src/completion.rs
parent67528c4b3943a2027839a25770d079132a9ea130 (diff)
parentd5f6a5f5e29df3005533502b49f78daae314ac5b (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.rs4
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 @@
1mod completion_item; 1mod completion_item;
2mod completion_context; 2mod completion_context;
3mod presentation;
3 4
4mod complete_dot; 5mod complete_dot;
5mod complete_struct_literal; 6mod 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)]
27use crate::completion::completion_item::{do_completion, check_completion};
24 28
25pub use crate::completion::completion_item::{CompletionItem, CompletionItemKind, InsertTextFormat}; 29pub use crate::completion::completion_item::{CompletionItem, CompletionItemKind, InsertTextFormat};
26 30