Pass project environment to runInTerminal requests (#32720)
Closes #ISSUE Release Notes: - debugger: Pass environment to run in terminal requests
This commit is contained in:
parent
d7db4d4e0a
commit
92addb005a
5 changed files with 29 additions and 7 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue