project: Use user configured shells for project env fetching (#41288)

Closes https://github.com/zed-industries/zed/issues/40464

Release Notes:

- Fix shell environment sourcing not respecting users remote shells
This commit is contained in:
Lukas Wirth
2025-11-03 16:29:07 +00:00
committed by GitHub
parent a6b177d806
commit 38e1e3f498
12 changed files with 177 additions and 153 deletions
+3 -2
View File
@@ -94,7 +94,8 @@ impl HeadlessProject {
store
});
let environment = cx.new(|cx| ProjectEnvironment::new(None, cx));
let environment =
cx.new(|cx| ProjectEnvironment::new(None, worktree_store.downgrade(), None, cx));
let manifest_tree = ManifestTree::new(worktree_store.clone(), cx);
let toolchain_store = cx.new(|cx| {
ToolchainStore::local(
@@ -786,7 +787,7 @@ impl HeadlessProject {
let environment = this
.update(&mut cx, |this, cx| {
this.environment.update(cx, |environment, cx| {
environment.get_local_directory_environment(&shell, directory.into(), cx)
environment.local_directory_environment(&shell, directory.into(), cx)
})
})?
.await