debugger: Fix environment variables not being substituted in debug tasks (#31198)

Release Notes:

- Debugger Beta: Fixed a bug where environment variables were not
substituted in debug tasks in some cases.

Co-authored-by: Anthony Eid <hello@anthonyeid.me>
Co-authored-by: Remco Smits <djsmits12@gmail.com>
This commit is contained in:
Cole Miller 2025-05-22 15:14:05 -04:00 committed by GitHub
parent 37047a6fde
commit ad4645c59b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -927,6 +927,7 @@ impl RunningState {
.ok_or_else(|| anyhow!("{}: is not a valid adapter name", &adapter))
.map(|adapter| adapter.config_from_zed_format(zed_config))??;
config = scenario.config;
Self::substitute_variables_in_config(&mut config, &task_context);
} else {
anyhow::bail!("No request or build provided");
};