# debugger: Add console indicator and resolve debug configs from NewSessionModal \(\#28489\) · gitcafe/zed

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

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

Visibility: public

Requested revision: cf65d9437a196d487940cd453a8b73be9b000184

Requested commit: cf65d9437a196d487940cd453a8b73be9b000184

Commit: cf65d9437a196d487940cd453a8b73be9b000184

Tree: 4239512495b5302e89702f010f7ebf3d1555e601

Author: Anthony Eid

Committer: GitHub

## Message

```
debugger: Add console indicator and resolve debug configs from NewSessionModal (#28489)

The debug console will now show an indicator when it's unopened and
there's unread messages.

`NewSessionModal` attempts to resolve debug configurations before using
the config to start debugging. This allows users to use zed's task
variables in the modal prompt.

I had to invert tasks_ui dependency on debugger_ui so `NewSessionModal`
could get the correct `TaskContexts` by calling tasks_ui functions. A
consequence of this workspace has a new event `ShowAttachModal` that I'm
not a big fan of. @osiewicz if you have time could you please take a
look to see if there's a way around adding the event. I'm open to pair
on it too.

Release Notes:

- N/A
```

## Parents

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

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