Skip to content

Conversation

@DonJayamanne
Copy link
Collaborator

No description provided.

}
fn get_know_global_search_locations(&self) -> Vec<PathBuf> {
vec![]
if self.global_search_locations.lock().unwrap().is_empty() {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was missing

fn get_know_global_search_locations(&self) -> Vec<PathBuf> {
let mut paths = env::split_paths(&self.get_env_var("PATH".to_string()).unwrap_or_default())
.collect::<Vec<PathBuf>>();
if self.global_search_locations.lock().unwrap().is_empty() {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cached this instead of computing this everytime

@DonJayamanne DonJayamanne marked this pull request as ready for review June 25, 2024 05:28
@vscodenpa vscodenpa added this to the June 2024 milestone Jun 25, 2024
@DonJayamanne DonJayamanne merged commit 786b985 into main Jun 25, 2024
@DonJayamanne DonJayamanne deleted the windowsGlobalSearch branch June 25, 2024 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants