aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_completion/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ide_completion/src')
-rw-r--r--crates/ide_completion/src/completions/flyimport.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/crates/ide_completion/src/completions/flyimport.rs b/crates/ide_completion/src/completions/flyimport.rs
index efb91fe0e..8a11cba41 100644
--- a/crates/ide_completion/src/completions/flyimport.rs
+++ b/crates/ide_completion/src/completions/flyimport.rs
@@ -21,8 +21,9 @@
21//! ``` 21//! ```
22//! 22//!
23//! Also completes associated items, that require trait imports. 23//! Also completes associated items, that require trait imports.
24//! If any unresolved and/or partially-qualified path predeces the input, it will be taken into account: only the items with import string 24//! If any unresolved and/or partially-qualified path predeces the input, it will be taken into account.
25//! containing this whole path will be considered and the corresponding path import will be added: 25//! Currently, only the imports with their import path ending with the whole qialifier will be proposed
26//! (no fuzzy matching for qualifier).
26//! 27//!
27//! ``` 28//! ```
28//! mod foo { 29//! mod foo {
@@ -187,7 +188,6 @@ fn import_assets<'a>(ctx: &'a CompletionContext, fuzzy_name: String) -> Option<I
187 ctx.scope.clone(), 188 ctx.scope.clone(),
188 )?; 189 )?;
189 190
190 // TODO kb bad: with the path prefix, the "min 3 symbols" limit applies. Fix in a separate PR on the symbol_index level
191 if matches!(assets_for_path.import_candidate(), ImportCandidate::Path(_)) 191 if matches!(assets_for_path.import_candidate(), ImportCandidate::Path(_))
192 && fuzzy_name_length < 2 192 && fuzzy_name_length < 2
193 { 193 {
@@ -937,7 +937,6 @@ mod foo {
937} 937}
938 938
939fn main() { 939fn main() {
940 let zz = "sdsd";
941 bar::Ass$0 940 bar::Ass$0
942}"#, 941}"#,
943 expect![[]], 942 expect![[]],