mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-26 03:59:55 +00:00
docs: Move install rustup callup to top of developing-extensions.md (#21239)
This commit is contained in:
parent
ce6782f4c8
commit
6736806924
1 changed files with 10 additions and 10 deletions
|
@ -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).
|
||||
|
|
Loading…
Reference in a new issue