# debugger: Ensure both debug and regular global tasks are correctly merged \(\#27184\) · gitcafe/zed

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

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

Visibility: public

Requested revision: de99febd9b4053a2c8b68a16aa5918701a61be63

Requested commit: de99febd9b4053a2c8b68a16aa5918701a61be63

Commit: de99febd9b4053a2c8b68a16aa5918701a61be63

Tree: d87b441229cfdb2a600b563961358a6ff348cb63

Author: Kirill Bulatov

Committer: GitHub

## Message

```
debugger: Ensure both debug and regular global tasks are correctly merged (#27184)

Follow-up of https://github.com/zed-industries/zed/pull/13433
Closes https://github.com/zed-industries/zed/issues/27124
Closes https://github.com/zed-industries/zed/issues/27066

After this change, both old global task source, `tasks.json` and new,
`debug.json` started to call for the same task update method:


https://github.com/zed-industries/zed/blob/14920ab910c6d0208d23ce6b6e2ed644e6f20f2e/crates/project/src/task_inventory.rs#L414

erasing previous declarations.

The PR puts this data under different paths instead and adjusts the code
around it.

Release Notes:

- Fixed custom tasks not shown
```

## Parents

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

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