Update extension extraction docs (#24079)

- Fixed a regex for finding tags.
- Templatize the instructions with `$LANGNAME` to prevent manual errors
from failing to edit commands (this bit me)
- Ran formatting through Prettier
This commit is contained in:
Peter Tripp 2025-02-06 19:01:32 -05:00 committed by GitHub
parent 337b9e62d2
commit 5315d38cf4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 84 additions and 12 deletions

View file

@ -95,6 +95,12 @@ To publish an extension, open a PR to [the `zed-industries/extensions` repo](htt
In your PR, do the following:
1. Add your extension as a Git submodule within the `extensions/` directory
```sh
git submodule add https://github.com/your-username/foobar-zed.git extensions/foobar
git add extensions/foobar
```
2. Add a new entry to the top-level `extensions.toml` file containing your extension:
```toml