Expand description
The Zed Rust Extension API allows you write extensions for Zed in Rust.
Re-exports§
pub use serde_json;
Modules§
- http_
client - An HTTP client.
- lsp
- Constructs for interacting with language servers over the Language Server Protocol (LSP).
- process
- A module for working with processes.
- settings
- Provides access to Zed settings.
Macros§
- register_
extension - Registers the provided type as a Zed extension.
Structs§
- Code
Label - A label containing some code.
- Code
Label Span Literal - A span containing a code literal.
- Context
Server Id - The ID of a context server.
- Github
Release - A GitHub release.
- Github
Release Asset - An asset from a GitHub release.
- Github
Release Options - The options used to filter down GitHub releases.
- KeyValue
Store - A key-value store.
- Language
Server Id - The ID of a language server.
- Project
- A Zed project.
- Slash
Command - A slash command for use in the Assistant.
- Slash
Command Argument Completion - A completion for a slash command argument.
- Slash
Command Output - The output of a slash command.
- Slash
Command Output Section - A section in the slash command output.
- Worktree
- A Zed worktree.
Enums§
- Architecture
- A platform architecture.
- Code
Label Span - A span within a code label.
- Downloaded
File Type - The type of a downloaded file.
- Language
Server Installation Status - The installation status for a language server.
- Os
- An operating system.
Traits§
- Extension
- A Zed extension.
Functions§
- current_
platform - Gets the current operating system and architecture.
- download_
file - Downloads a file from the given URL and saves it to the given path within the extension’s working directory.
- github_
release_ by_ tag_ name - Returns the GitHub release with the specified tag name for the given GitHub repository.
- latest_
github_ release - Returns the latest release for the given GitHub repository.
- make_
file_ executable - Makes the file at the given path executable.
- node_
binary_ path - Returns the path to the Node binary used by Zed.
- npm_
install_ package - Installs the specified NPM package.
- npm_
package_ installed_ version - Returns the installed version of the given NPM package, if it exists.
- npm_
package_ latest_ version - Returns the latest version of the given NPM package.
- set_
language_ server_ installation_ status - Updates the installation status for the given language server.