aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_db/src/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ide_db/src/helpers')
-rw-r--r--crates/ide_db/src/helpers/import_assets.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/crates/ide_db/src/helpers/import_assets.rs b/crates/ide_db/src/helpers/import_assets.rs
index 6995c3e19..0da7a1a9d 100644
--- a/crates/ide_db/src/helpers/import_assets.rs
+++ b/crates/ide_db/src/helpers/import_assets.rs
@@ -256,7 +256,14 @@ fn path_applicable_imports(
256 sema, 256 sema,
257 current_crate, 257 current_crate,
258 path_candidate.name.clone(), 258 path_candidate.name.clone(),
259 // unqualified assoc items are not valid syntax 259 // FIXME: we could look up assoc items by the input and propose those in completion,
260 // but that requries more preparation first:
261 // * store non-trait assoc items in import_map to fully enable this lookup
262 // * ensure that does not degrade the performance (bencmark it)
263 // * write more logic to check for corresponding trait presence requirement (we're unable to flyimport multiple item right now)
264 // * improve the associated completion item matching and/or scoring to ensure no noisy completions appear
265 //
266 // see also an ignored test under FIXME comment in the qualify_path.rs module
260 AssocItemSearch::Exclude, 267 AssocItemSearch::Exclude,
261 Some(DEFAULT_QUERY_SEARCH_LIMIT), 268 Some(DEFAULT_QUERY_SEARCH_LIMIT),
262 ) 269 )