docs: Add docs for defining slash commands in extensions (#16303)

This PR adds docs for defining slash commands within extensions.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-08-15 12:50:30 -04:00 committed by GitHub
parent c45adce2e3
commit b764174e8b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 138 additions and 4 deletions

View file

@ -6,6 +6,7 @@ Extensions can add the following capabilities to Zed:
- [Languages](./languages.md)
- [Themes](./themes.md)
- [Slash Commands](./slash-commands.md)
## Directory Structure of a Zed Extension
@ -22,10 +23,6 @@ description = "My cool extension"
repository = "https://github.com/your-name/my-zed-extension"
```
<!--
TBD: Document `slash_commands`, `indexed_docs_providers` (see: extensions/gleam/extension.toml)
-->
In addition to this, there are several other optional files and directories that can be used to add functionality to a Zed extension. An example directory structure of an extension that provides all capabilities is as follows:
```