Clean up environment loading a bit (#28356)

Closes #ISSUE

Release Notes:

- N/A
This commit is contained in:
Cole Miller 2025-04-08 22:16:35 -04:00 committed by GitHub
parent b687a5e56d
commit f0b7f355a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 100 additions and 101 deletions

View file

@ -3776,7 +3776,7 @@ impl Repository {
.upgrade()
.ok_or_else(|| anyhow!("missing project environment"))?
.update(cx, |project_environment, cx| {
project_environment.get_environment(Some(work_directory_abs_path.clone()), cx)
project_environment.get_directory_environment(work_directory_abs_path.clone(), cx)
})?
.await
.unwrap_or_else(|| {