diff --git a/crates/language/src/outline.rs b/crates/language/src/outline.rs index 1b4fad56fd..0da6e72547 100644 --- a/crates/language/src/outline.rs +++ b/crates/language/src/outline.rs @@ -63,6 +63,7 @@ impl Outline { pub async fn search(&self, query: &str, executor: Arc) -> Vec { let query = query.trim_start(); let is_path_query = query.contains(' '); + let smart_case = query.chars().any(|c| c.is_uppercase()); let mut matches = fuzzy::match_strings( if is_path_query { &self.path_candidates @@ -70,7 +71,7 @@ impl Outline { &self.candidates }, query, - true, + smart_case, 100, &Default::default(), executor.clone(),