# Make slash commands defined in extensions return \`SlashCommandOutput\` \(\#13237\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ad4e52842cc716c9e945fdc4562b1381543b21b0

Requested commit: ad4e52842cc716c9e945fdc4562b1381543b21b0

Commit: ad4e52842cc716c9e945fdc4562b1381543b21b0

Tree: bd7d45b6b814324828b35be1e3a5c4715829f61e

Author: Marshall Bowers

Committer: GitHub

## Message

```
Make slash commands defined in extensions return `SlashCommandOutput` (#13237)

This PR extends the interface for slash commands defined in extensions
to have them return `SlashCommandOutput`.

This allows for slash commands to return multiple output sections for a
single piece of generated text.

Note that we don't allow specifying the icon to display in the
placeholder, as we don't want to commit to that in our API at the
moment.

Release Notes:

- N/A
```

## Parents

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

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