# debugger: Separate Continue Program and Continue Thread actions \(\#63135\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 391a66a5ad9f68e13a54f57b3b06f4605867614c

Requested commit: 391a66a5ad9f68e13a54f57b3b06f4605867614c

Commit: 391a66a5ad9f68e13a54f57b3b06f4605867614c

Tree: da91ce3a7be11f0491d15eabbf2831f6ef1824b2

Author: Smit Barmase

Committer: GitHub

## Message

```
debugger: Separate Continue Program and Continue Thread actions (#63135)

Fixes #63091

Continue Program was sending `singleThread: true` whenever the adapter
supported it, which caused some adapters to resume only the selected
thread. It now leaves `singleThread` unset and resumes all threads.

Adapters that support single-thread execution now show separate Continue
Program and Continue Thread buttons. Other adapters still show only
Continue Program.

<img width="247" height="108" alt="image"
src="https://github.com/user-attachments/assets/5059d291-4809-488b-9169-e4817852fb07"
/>

This change also:

- Updates thread states from the continue response instead of waiting
for a [continued event, which adapters are not expected to
send](https://github.com/microsoft/debug-adapter-protocol/blob/bf8a5d27e8040044b84b863f90916e08925ee811/debugAdapterProtocol.json#L243-L246).
- Treats an omitted allThreadsContinued in a continued event as true, as
required by the [DAP
specification](https://github.com/microsoft/debug-adapter-protocol/blob/main/debugAdapterProtocol.json#L260-L263).

Release Notes:

- Added a Continue Thread action and fixed Continue Program to resume
all threads.
```

## Parents

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

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