Respect casing when searching for imports

This commit is contained in:
Jonas Schievink 2020-06-10 16:04:55 +02:00
parent ed2817e599
commit 7e83ed99a8
3 changed files with 81 additions and 6 deletions

View file

@ -107,7 +107,7 @@ impl Crate {
import_map::search_dependencies(
db,
self.into(),
import_map::Query::new(query).anchor_end().limit(40),
import_map::Query::new(query).anchor_end().case_sensitive().limit(40),
)
.into_iter()
.map(|item| match item {