# acp: Fix \`MessageEditor::set_message\` for sent messages \(\#36715\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0beb919bbb8c662ee7ff3302bfb5e49bec1e3fba

Requested commit: 0beb919bbb8c662ee7ff3302bfb5e49bec1e3fba

Commit: 0beb919bbb8c662ee7ff3302bfb5e49bec1e3fba

Tree: 01c195b1a019ad82fbc55a4ba758017695ea6287

Author: Agus Zubiaga

Committer: GitHub

## Message

```
acp: Fix `MessageEditor::set_message` for sent messages (#36715)

The `PromptCapabilities` introduced in previous PRs were only getting
set on the main message editor and not for the editors in user messages.
This caused a bug where mentions would disappear after resending the
message, and for the completion provider to be limited to files.

Release Notes:

- N/A
```

## Parents

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

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