Crate zed_extension_api
source ·Expand description
The Zed Rust Extension API allows you write extensions for Zed in Rust.
Re-exports§
pub use serde_json;
Modules§
- Constructs for interacting with language servers over the Language Server Protocol (LSP).
- Provides access to Zed settings.
Macros§
- Registers the provided type as a Zed extension.
Structs§
- A label containing some code.
- A span containing a code literal.
- A command.
- A GitHub release.
- An asset from a GitHub release.
- The options used to filter down GitHub releases.
- The ID of a language server.
- A (half-open) range (
[start, end)
). - A Zed worktree.
Enums§
- A platform architecture.
- A span within a code label.
- The type of a downloaded file.
- The installation status for a language server.
- An operating system.
Traits§
- A Zed extension.
Functions§
- Gets the current operating system and architecture.
- Downloads a file from the given URL and saves it to the given path within the extension’s working directory.
- Returns the latest release for the given GitHub repository.
- Makes the file at the given path executable.
- Returns the path to the Node binary used by Zed.
- Installs the specified NPM package.
- Returns the installed version of the given NPM package, if it exists.
- Returns the latest version of the given NPM package.
- Updates the installation status for the given language server.
Type Aliases§
- A list of environment variables.
- A result returned from a Zed extension.