aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/lib.rs
diff options
context:
space:
mode:
authorKirill Bulatov <[email protected]>2021-01-05 08:34:03 +0000
committerKirill Bulatov <[email protected]>2021-01-16 18:44:12 +0000
commitdb335a1bbf1d1bea2c761f67efb4b49831738e31 (patch)
tree910963c004c460d2f0c322a0e643947aaf7132b8 /crates/ide/src/lib.rs
parent9a349f280ff1c6d0b57df80aa3d6720474e4b00a (diff)
Add flyimport completion for trait assoc items
Diffstat (limited to 'crates/ide/src/lib.rs')
-rw-r--r--crates/ide/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ide/src/lib.rs b/crates/ide/src/lib.rs
index f8d69382e..07f52613f 100644
--- a/crates/ide/src/lib.rs
+++ b/crates/ide/src/lib.rs
@@ -481,6 +481,7 @@ impl Analysis {
481 position: FilePosition, 481 position: FilePosition,
482 full_import_path: &str, 482 full_import_path: &str,
483 imported_name: String, 483 imported_name: String,
484 import_for_trait_assoc_item: bool,
484 ) -> Cancelable<Vec<TextEdit>> { 485 ) -> Cancelable<Vec<TextEdit>> {
485 Ok(self 486 Ok(self
486 .with_db(|db| { 487 .with_db(|db| {
@@ -490,6 +491,7 @@ impl Analysis {
490 position, 491 position,
491 full_import_path, 492 full_import_path,
492 imported_name, 493 imported_name,
494 import_for_trait_assoc_item,
493 ) 495 )
494 })? 496 })?
495 .unwrap_or_default()) 497 .unwrap_or_default())