docs: Move install rustup callup to top of developing-extensions.md (#21239)

This commit is contained in:
Peter Tripp 2024-11-27 14:25:43 +00:00 committed by GitHub
parent ce6782f4c8
commit 6736806924
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,6 +9,16 @@ Extensions can add the following capabilities to Zed:
- [Slash Commands](./slash-commands.md)
- [Context Servers](./context-servers.md)
## Developing an Extension Locally
Before starting to develop an extension for Zed, be sure to [install Rust via rustup](https://www.rust-lang.org/tools/install).
When developing an extension, you can use it in Zed without needing to publish it by installing it as a _dev extension_.
From the extensions page, click the `Install Dev Extension` button and select the directory containing your extension.
If you already have a published extension with the same name installed, your dev extension will override it.
## Directory Structure of a Zed Extension
A Zed extension is a Git repository that contains an `extension.toml`. This file must contain some
@ -75,16 +85,6 @@ impl zed::Extension for MyExtension {
zed::register_extension!(MyExtension);
```
## Developing an Extension Locally
Before starting to develop an extension for Zed, be sure to [install Rust via rustup](https://www.rust-lang.org/tools/install).
When developing an extension, you can use it in Zed without needing to publish it by installing it as a _dev extension_.
From the extensions page, click the `Install Dev Extension` button and select the directory containing your extension.
If you already have a published extension with the same name installed, your dev extension will override it.
## Publishing your extension
To publish an extension, open a PR to [the `zed-industries/extensions` repo](https://github.com/zed-industries/extensions).