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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user