# debugger: Fix issues with launch.json handling \(\#32563\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/c4277681d1d6246899e9f810ceb594bafc2f64a8)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: c4277681d1d6246899e9f810ceb594bafc2f64a8

Requested commit: c4277681d1d6246899e9f810ceb594bafc2f64a8

Commit: c4277681d1d6246899e9f810ceb594bafc2f64a8

Tree: 0b6c0e6ac18176cf0d5bfe8567685d2d921c5201

Author: Cole Miller

Committer: GitHub

## Message

```
debugger: Fix issues with launch.json handling (#32563)

After this PR we can run all the in-tree launch.json examples from [this
repo](https://github.com/microsoft/vscode-recipes).

Things done:

- Fill in default cwd at a lower level for all adapters
- Update launch.json parsing for DebugScenario changes
- Imitate how VS Code normalizes the `type` field for JS debug tasks
- Make version field optional
- Extend the variable replacer a bit

Release Notes:

- Debugger Beta: fixed issues preventing loading and running of debug
tasks from VS Code's launch.json.

---------

Co-authored-by: Anthony Eid <hello@anthonyeid.me>
Co-authored-by: Anthony <anthony@zed.dev>
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
```

## Parents

- [0e0ac9b846e1ba3255ff0e7f3a57aa8747de2b7d](https://git.cafe/gitcafe/zed/commit/0e0ac9b846e1ba3255ff0e7f3a57aa8747de2b7d?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/c4277681d1d6246899e9f810ceb594bafc2f64a8?format=markdown)
