Pass project environment to runInTerminal requests (#32720)

Closes #ISSUE

Release Notes:

- debugger: Pass environment to run in terminal requests
This commit is contained in:
Conrad Irwin 2025-06-16 09:34:50 -06:00 committed by GitHub
parent d7db4d4e0a
commit 92addb005a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 29 additions and 7 deletions

View file

@ -1012,7 +1012,8 @@ impl RunningState {
None
};
let mut envs: HashMap<String, String> = Default::default();
let mut envs: HashMap<String, String> =
self.session.read(cx).task_context().project_env.clone();
if let Some(Value::Object(env)) = &request.env {
for (key, value) in env {
let value_str = match (key.as_str(), value) {