windows: Add support for fetching shell environment in remote projects (#39831)

Closes #39216

Note that this affects all platforms, I'm just using the prefix to make
auto-cherry-picking easier.

Release Notes:

- Fixed shell commands run by agents failing to find installed programs
in some cases.
This commit is contained in:
Cole Miller
2025-10-12 23:31:40 +00:00
committed by GitHub
parent abc1e67221
commit 92e765b5d2
14 changed files with 180 additions and 59 deletions
+6 -2
View File
@@ -49,7 +49,7 @@ use std::{
path::{Path, PathBuf},
sync::{Arc, Once},
};
use task::{DebugScenario, SpawnInTerminal, TaskContext, TaskTemplate};
use task::{DebugScenario, Shell, SpawnInTerminal, TaskContext, TaskTemplate};
use util::{ResultExt as _, rel_path::RelPath};
use worktree::Worktree;
@@ -279,7 +279,11 @@ impl DapStore {
.unwrap()
.environment
.update(cx, |environment, cx| {
environment.get_directory_environment(cwd, cx)
environment.get_local_directory_environment(
&Shell::System,
cwd,
cx,
)
})
})?
.await;