# acp: Use \`ResourceLink\` for agents that don't support embedded context \(\#36687\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4bee06e507516d4a72501cb4fc2b9d30612f21d4

Requested commit: 4bee06e507516d4a72501cb4fc2b9d30612f21d4

Commit: 4bee06e507516d4a72501cb4fc2b9d30612f21d4

Tree: 30ffcd3f1ab5e51318e86b3839e063f3dd381729

Author: Agus Zubiaga

Committer: GitHub

## Message

```
acp: Use `ResourceLink` for agents that don't support embedded context (#36687)

The completion provider was already limiting the mention kinds according
to `acp::PromptCapabilities`. However, it was still using
`ContentBlock::EmbeddedResource` when
`acp::PromptCapabilities::embedded_context` was `false`. We will now use
`ResourceLink` in that case making it more complaint with the
specification.

Release Notes:

- N/A
```

## Parents

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

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