id stringlengths 20 30 | source stringclasses 1
value | chunk_index int64 0 520k | token_count int32 154 512 | content stringlengths 185 57.5k |
|---|---|---|---|---|
rust_dataset_chunk_509600 | rust_dataset.txt | 509,600 | 512 | search capabilities. See [MCP servers](./mcp.md) for details.
## Edit Tools
### `copy_path`
Copies a file or directory recursively in the project, more efficient than manually reading and writing files when duplicating content.
### `create_directory`
Creates a new directory at the specified path within the projec... |
rust_dataset_chunk_509601 | rust_dataset.txt | 509,601 | 512 | ed/docs/src/ai/use-a-gateway.md ---
---
title: Use a Gateway - Zed
description: Configure OpenRouter, Vercel AI Gateway, Amazon Bedrock, and other gateway or cloud model platforms in Zed.
---
# Use a Gateway
Use a gateway when you route model requests through a platform such as OpenRouter, Vercel AI Gateway, Amazon B... |
rust_dataset_chunk_509602 | rust_dataset.txt | 509,602 | 512 | ": "google/gemini-2.0-flash-thinking-exp",
"display_name": "Gemini 2.0 Flash (Thinking)",
"max_tokens": 200000,
"max_output_tokens": 8192,
"supports_tools": true,
"supports_images": true,
"mode": {
"type": "thinking",
"budget_tokens": 8... |
rust_dataset_chunk_509603 | rust_dataset.txt | 509,603 | 512 | you want model access through AWS.
Bedrock supports models that support streaming tool use. See [Amazon Bedrock's Tool Use documentation](https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference-supported-models-features.html).
Your AWS credentials need these permissions:
- `bedrock:InvokeModelWi... |
rust_dataset_chunk_509604 | rust_dataset.txt | 509,604 | 512 | support global inference profiles. See the AWS Bedrock supported models documentation for the current list.
### Bedrock Guardrails {#bedrock-guardrails}
Some AWS environments require a guardrail on every Bedrock API call. Add `guardrail_identifier` to apply a guardrail to all Bedrock requests:
```json [settings]
{
... |
rust_dataset_chunk_509605 | rust_dataset.txt | 509,605 | 512 | for models that reject the temperature field, such as xAI and MoonshotAI models.
### Bedrock Custom Endpoints {#bedrock-custom-endpoints}
To send Bedrock Converse requests to a proxy or gateway instead of AWS, set `endpoint_url`:
```json [settings]
{
"language_models": {
"bedrock": {
"endpoint_url": "ht... |
rust_dataset_chunk_509606 | rust_dataset.txt | 509,606 | 512 | `, AWS's OpenAI-compatible inference endpoint. Zed routes these models through `bedrock-mantle` automatically; they appear alongside the rest of the Bedrock models in the model picker once you're authenticated, with no extra configuration required.
Mantle models require IAM permissions for the `bedrock-mantle` endpoin... |
rust_dataset_chunk_509607 | rust_dataset.txt | 509,607 | 512 | .
| Local path | Zed AI features | External Agents | Terminal Threads | Notes |
| --------------------------------- | -------------------- | --------------- | ---------------- | -------------------------------------------------- |
| llama.cpp ... |
rust_dataset_chunk_509608 | rust_dataset.txt | 509,608 | 512 | max_tokens": 32768,
"supports_tools": true,
"supports_images": false
}
]
}
}
}
```
### llama.cpp Context Length {#llama-cpp-context}
Zed uses the context length the server reports (`/props`). Override it for all models with `context_window`, or per model with `max_tokens` in `a... |
rust_dataset_chunk_509609 | rust_dataset.txt | 509,609 | 512 | "language_models": {
"ollama": {
"context_window": 8192
}
}
}
```
You can also configure context length per model with `max_tokens` in `available_models`.
If your Ollama server requires a key, enter the key in the provider UI or set `OLLAMA_API_KEY`. For remote Ollama services such as Ollama Turbo, s... |
rust_dataset_chunk_509610 | rust_dataset.txt | 509,610 | 512 | ----------------------------- | ---------------------------------------------------- | ------------------------------------- | ------------------------------ | ---------------------------------------------------------------- |
| Zed Pro, Business, or Student | [Zed-hosted models](../account/zed-hosted-models.md) | No ... |
rust_dataset_chunk_509611 | rust_dataset.txt | 509,611 | 512 | -threads.md).
### GitHub Copilot Enterprise {#copilot-enterprise}
To use your enterprise instance for Copilot Chat and edit predictions, add this to your settings file ([how to edit](../configuring-zed.md#settings-files)):
```json [settings]
{
"copilot": {
"enterprise_uri": "https://your.enterprise.domain"
}... |
rust_dataset_chunk_509612 | rust_dataset.txt | 509,612 | 512 | {#providers}
Zed supports these first-class API providers for model-backed Zed AI features:
- [Anthropic](#anthropic)
- [Custom Anthropic Models](#anthropic-custom-models)
- [OpenAI API](#openai)
- [Custom OpenAI Models](#openai-custom-models)
- [Google AI](#google-ai)
- [Custom Google AI Models](#google-ai-cu... |
rust_dataset_chunk_509613 | rust_dataset.txt | 509,613 | 512 | _API_KEY` |
| OpenRouter | `OPENROUTER_API_KEY` |
| Vercel AI Gateway | `VERCEL_AI_GATEWAY_API_KEY` |
| Ollama | `OLLAMA_API_KEY` |
| LM Studio | `LMSTUDIO_API_KEY... |
rust_dataset_chunk_509614 | rust_dataset.txt | 509,614 | 512 | . Make sure your Anthropic account has API credits.
3. Open Agent Settings with {#action agent::OpenSettings} and go to the Anthropic section.
4. Enter your Anthropic API key.
Zed also reads `ANTHROPIC_API_KEY` from the local Zed process environment.
#### Custom Anthropic Models {#anthropic-custom-models}
Add custom... |
rust_dataset_chunk_509615 | rust_dataset.txt | 509,615 | 512 | "language_models": {
"openai": {
"available_models": [
{
"name": "gpt-5.2",
"display_name": "gpt-5.2 high",
"reasoning_effort": "high",
"max_tokens": 272000,
"max_completion_tokens": 20000
}
]
}
}
}
```
You must provide the model... |
rust_dataset_chunk_509616 | rust_dataset.txt | 509,616 | 512 | ISTRAL_API_KEY` from the local Zed process environment.
#### Custom Mistral Models {#mistral-custom-models}
Add custom Mistral models when you need alternate model IDs, custom limits, tool
support, image support, or a custom endpoint.
```json [settings]
{
"language_models": {
"mistral": {
"api_url": "htt... |
rust_dataset_chunk_509617 | rust_dataset.txt | 509,617 | 512 | . Open Agent Settings with {#action agent::OpenSettings} and go to the xAI section.
3. Enter your xAI API key.
Zed also reads `XAI_API_KEY` from the local Zed process environment.
#### Custom xAI Models {#xai-custom-models}
Add custom xAI models when you need alternate Grok model IDs, custom limits,
image support, o... |
rust_dataset_chunk_509618 | rust_dataset.txt | 509,618 | 512 | .
By default, both Zen and Go models are shown. You can hide Zen or Go models by adding this to your settings file:
```json [settings]
{
"language_models": {
"opencode": {
"show_zen_models": true,
"show_go_models": true
}
}
}
```
#### Custom OpenCode Models {#opencode-custom-models}
Add a cu... |
rust_dataset_chunk_509619 | rust_dataset.txt | 509,619 | 512 | zen"` or `"go"`; defaults to `"zen"`
- `custom_model_api_url` (optional): custom API base URL to use instead of the default OpenCode API
Custom OpenCode models are listed in the model dropdown in the Agent Panel.
### Anthropic-Compatible Endpoints {#anthropic-compatible}
Use an Anthropic-compatible endpoint when a s... |
rust_dataset_chunk_509620 | rust_dataset.txt | 509,620 | 512 | API key in the provider settings UI or set the generated environment variable (`<PROVIDER_NAME>_API_KEY`; in the example above, `SOME_PROVIDER_API_KEY`). Do not put API keys in `settings.json`.
### OpenAI-Compatible Endpoints {#openai-compatible}
Use an OpenAI-compatible endpoint when you have a custom base URL, mod... |
rust_dataset_chunk_509621 | rust_dataset.txt | 509,621 | 512 | ort": "high",
"capabilities": {
"tools": true,
"images": false,
"parallel_tool_calls": false,
"prompt_cache_key": false,
"chat_completions": false,
"interleaved_reasoning": false,
"max_tokens_parameter": false
... |
rust_dataset_chunk_509622 | rust_dataset.txt | 509,622 | 512 | the [Agent Panel](./agent-panel.md) and [Threads Sidebar](./parallel-agents.md#threads-sidebar), uses models configured through [LLM Providers](./llm-providers.md), and integrates with Zed's project, editor, terminal, and review surfaces.
Use Zed Agent when you want the agent to:
- read and search your project
- edi... |
rust_dataset_chunk_509623 | rust_dataset.txt | 509,623 | 512 | , UI density, and other visual settings to match your preferences.
---
# Appearance
Customize Zed's visual appearance to match your preferences. This guide covers themes, fonts, icons, and other visual settings.
For information on how the settings system works, see [All Settings](./reference/all-settings.md).
## Cu... |
rust_dataset_chunk_509624 | rust_dataset.txt | 509,624 | 512 | and their fallback counterparts for different contexts:
| Setting | Used for |
| ------------------------- | ------------------------- |
| `buffer_font_family` | Editor text |
| `buffer_font_fallbacks` | Editor text |
| `ui_font_family` | ... |
rust_dataset_chunk_509625 | rust_dataset.txt | 509,625 | 512 | access collaboration features and AI services."
---
# Authenticate with Zed
Signing in to Zed is not required. You can use most features you'd expect in a code editor without ever doing so. We'll outline the few features that do require signing in, and how to do so, here.
## What Features Require Signing In?
1. Al... |
rust_dataset_chunk_509626 | rust_dataset.txt | 509,626 | 512 | Hiding Sign In button from the interface
In case the Sign In feature is not used, it's possible to hide that from the interface by using the `show_sign_in` settings property.
Refer to [Visual Customization page](./visual-customization.md) for more details.
--- FILE: zed/docs/src/business/admin-controls.md ---
---
t... |
rust_dataset_chunk_509627 | rust_dataset.txt | 509,627 | 512 | controls whether members can use Zed's hosted [Edit Predictions](../ai/edit-prediction.md) via the Zeta model family. Members using third-party providers or local models for edit predictions are not affected.
**Edit Prediction Feedback** controls whether members can submit feedback on edit predictions. This setting i... |
rust_dataset_chunk_509628 | rust_dataset.txt | 509,628 | 512 | subscription, billing, and admin controls.
To switch organizations in the dashboard, use the org switcher in the top-left corner. In the Zed editor, click the organization name in the title bar to see all your organizations and move between them.
## Creating an organization
To create an organization, go to [dashboa... |
rust_dataset_chunk_509629 | rust_dataset.txt | 509,629 | 512 | control which AI features are available, what data leaves your environment, and how AI spend is tracked.
It's for teams that want modern AI tooling without security trade-offs, and for companies with procurement or compliance requirements that have blocked Zed deployment.
## What's included
Every member gets access... |
rust_dataset_chunk_509630 | rust_dataset.txt | 509,630 | 512 | -controls.md); individual members can't opt in or out.
## What's enforced by default
For all members of a Zed Business organization:
- **No prompt sharing:** Conversations and prompts are never shared with Zed.
Members can't opt into
[AI feedback via ratings](../ai/ai-improvement.md#ai-feedback-with-ratings).
... |
rust_dataset_chunk_509631 | rust_dataset.txt | 509,631 | 512 | See [Admin Controls](./admin-controls.md) for the full list.
--- FILE: zed/docs/src/collaboration/channels.md ---
---
title: Channels
description: "Persistent collaboration rooms in Zed for sharing projects, voice chat, and real-time code editing."
---
# Channels {#channels}
Channels are persistent rooms for team c... |
rust_dataset_chunk_509632 | rust_dataset.txt | 509,632 | 512 | as though they had it checked out locally.
When you edit someone else's project, your editor features still work: jump to definition, use AI features, and view diagnostics.
For pairing, one person can implement while the other reads and validates nearby code.
Because you keep your own local configuration, the session... |
rust_dataset_chunk_509633 | rust_dataset.txt | 509,633 | 512 | editor.
As a workaround, collaborators can share their screen and you can follow that instead.
## Screen Sharing
Share your screen with collaborators in the current channel by clicking on the `Share screen` (monitor icon) button in the top right of the title bar.
If you have multiple displays, you can choose which o... |
rust_dataset_chunk_509634 | rust_dataset.txt | 509,634 | 512 | 1. Click `Call <username>`
Once you've begun a private call, you can add other online contacts by clicking their name in the Collaboration Panel.
---
_Private calls work like [channels](./channels.md), without channel-specific features such as channel notes._
--- FILE: zed/docs/src/collaboration/overview.md ---
--... |
rust_dataset_chunk_509635 | rust_dataset.txt | 509,635 | 512 | any Zed action from the command palette. Fuzzy search commands, key bindings, and editor actions.
---
# Command Palette
The Command Palette is the main way to access actions in Zed. Its keybinding is one of the first shortcuts to learn: {#kb command_palette::Toggle}.
, Zed's open-source and open-data model.
Edit predictions appear as you type, and most of the time, you can accept them by pressing `tab`.
See the [edit predictions documentation](./ai/edit-prediction.md) for more information on how to setup and configure Zed's edit predictions.
--- FILE: zed... |
rust_dataset_chunk_509637 | rust_dataset.txt | 509,637 | 512 | preferred_line_length`](./reference/all-settings.md#preferred-line-length): The recommended maximum line length
- [`soft_wrap`](./reference/all-settings.md#soft-wrap): How to wrap long lines of code
- [`show_completions_on_input`](./reference/all-settings.md#show-completions-on-input): Whether or not to show completion... |
rust_dataset_chunk_509638 | rust_dataset.txt | 509,638 | 512 | ed may prompt you to install an extension for known file types.
2. Storage Location:
- macOS: `~/Library/Application Support/Zed/languages`
- Linux: `$XDG_DATA_HOME/zed/languages`, `$FLATPAK_XDG_DATA_HOME/zed/languages`, or `$HOME/.local/share/zed/languages`
3. Automatic Updates: Zed keeps your language server... |
rust_dataset_chunk_509639 | rust_dataset.txt | 509,639 | 512 | "languages": {
"Ruby": {
"language_servers": [
"solargraph",
"!ruby-lsp",
"!rubocop",
"!sorbet",
"!steep",
"!kanayago",
"!fuzzy-ruby-server",
"..."
]
}
}
}
```
When you override `language_servers` in your settings, your list **repla... |
rust_dataset_chunk_509640 | rust_dataset.txt | 509,640 | 512 | from a toolchain picker (via {#action toolchain::Select}). To learn more about toolchains in Zed, see [`toolchains`](./toolchains.md).
### Configuring Language Servers
When configuring language servers in your `settings.json`, autocomplete suggestions include all available LSP adapters recognized by Zed, not only th... |
rust_dataset_chunk_509641 | rust_dataset.txt | 509,641 | 512 | ://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspace_configuration)
May be queried by the server multiple times.
Most of the servers would rely on this way of configuring only.
```json [settings]
"lsp": {
"tailwindcss-language-server": {
"settings": {
"tailwindC... |
rust_dataset_chunk_509642 | rust_dataset.txt | 509,642 | 512 | Prettier for JavaScript and the language server's formatter for [Rust](./languages/rust.md), both set to format on save.
To disable formatting for a specific language:
```json [settings]
"languages": {
"Markdown": {
"format_on_save": "off"
}
}
```
### Setting Up Linters
Linting in Zed is typically handled ... |
rust_dataset_chunk_509643 | rust_dataset.txt | 509,643 | 512 | "arguments": ["--stdin-filepath", "{buffer_path}"]
}
}
],
"format_on_save": "on"
}
}
```
### Troubleshooting
If you encounter issues with formatting or linting:
1. Check Zed's log file for error messages (Use the command palette: {#action zed::OpenLog})
2. Ensure external tools (for... |
rust_dataset_chunk_509644 | rust_dataset.txt | 509,644 | 512 | can customize token colors and styles through `global_lsp_settings.semantic_token_rules` in your settings.
→ [Semantic Tokens documentation](./semantic-tokens.md)
### Inlay Hints
Inlay hints provide additional information inline in your code, such as parameter names or inferred types. Configure inlay hints in your ... |
rust_dataset_chunk_509645 | rust_dataset.txt | 509,645 | 512 | links to relevant resources.
### Workspace Symbol Search
The {#action project_symbols::Toggle} command allows you to search for symbols (functions, classes, variables) across your entire project. This is useful for quickly navigating large codebases.
### Code Completion
Zed provides intelligent code completion sug... |
rust_dataset_chunk_509646 | rust_dataset.txt | 509,646 | 512 | action zed::OpenDefaultSettings} from the command palette. This opens a read-only reference you can use when editing your own settings.
### Project Settings
Override user settings for a specific project by creating a `.zed/settings.json` file in your project root. Run {#action zed::OpenProjectSettings} to create this... |
rust_dataset_chunk_509647 | rust_dataset.txt | 509,647 | 512 | settings]
{
"theme": {
"mode": "system",
"light": "One Light",
"dark": "One Dark"
},
"buffer_font_family": "JetBrains Mono",
"buffer_font_size": 14,
"tab_size": 2,
"format_on_save": "on",
"autosave": "on_focus_change",
"vim_mode": false,
"terminal": {
"font_family": "JetBrains Mono",
... |
rust_dataset_chunk_509648 | rust_dataset.txt | 509,648 | 512 | ](./languages/java.md#debugging) (provided by extension)
- [JavaScript](./languages/javascript.md#debugging) (built-in)
- [PHP](./languages/php.md#debugging) (built-in)
- [Python](./languages/python.md#debugging) (built-in)
- [Ruby](./languages/ruby.md#debugging) (provided by extension)
- [Rust](./languages/rust.md#deb... |
rust_dataset_chunk_509649 | rust_dataset.txt | 509,649 | 512 | , you can store them once in your user configuration. Invoke {#action zed::OpenDebugTasks} from the command palette to open the global `debug.json` file; Zed creates it next to your user `settings.json` and keeps it in sync with the debugger UI. The file lives at:
- **macOS:** `~/Library/Application Support/Zed/debug.... |
rust_dataset_chunk_509650 | rust_dataset.txt | 509,650 | 512 | - launch: Zed will launch the program if specified, or show a debug terminal with the right configuration
// - attach: Zed will attach to a running program to debug it, or when the process_id is not specified, will show a process picker (only supported for node currently)
"request": "launch",
// The progr... |
rust_dataset_chunk_509651 | rust_dataset.txt | 509,651 | 512 | will only stop at the breakpoint after it's hit a certain number of times.
- Disable a breakpoint, which will prevent it from being hit while leaving it visible in the gutter.
Some debug adapters (e.g. CodeLLDB and JavaScript) will also _verify_ whether your breakpoints can be hit; breakpoints that cannot be hit are ... |
rust_dataset_chunk_509652 | rust_dataset.txt | 509,652 | 512 | bottom`
- Setting: debugger.dock
**Options**
1. `left` - The debug panel will be docked to the left side of the UI.
2. `right` - The debug panel will be docked to the right side of the UI.
3. `bottom` - The debug panel will be docked to the bottom of the UI.
```json [settings]
"debugger": {
"dock": "bottom"
},
```... |
rust_dataset_chunk_509653 | rust_dataset.txt | 509,653 | 512 | `integer` values
```json [settings]
{
"debugger": {
"timeout": 3000
}
}
```
### Inline Values
- Description: Whether to enable editor inlay hints showing the values of variables in your code during debugging sessions.
- Default: `true`
- Setting: `inlay_hints.show_value_hints`
**Options**
```json [settings... |
rust_dataset_chunk_509654 | rust_dataset.txt | 509,654 | 512 | a GitHub issue](https://github.com/zed-industries/zed/issues/new?template=04_bug_debugger.yml), providing as much context as possible. There are also some features you can use to gather more information about the problem:
- When you have a session running in the debug panel, you can run the {#action dev::CopyDebugAda... |
rust_dataset_chunk_509655 | rust_dataset.txt | 509,655 | 512 | in a dev container.
Alternatively, you can reach for the Remote Projects modal (through the {#kb projects::OpenRemote} binding) and choose the "Connect Dev Container" option.
## Editing the dev container configuration
If you modify `.devcontainer/devcontainer.json`, Zed does not currently rebuild or reload the conta... |
rust_dataset_chunk_509656 | rust_dataset.txt | 509,656 | 512 | This is done by setting the `profile.(release).debug` field in the root `Cargo.toml` field to `"limited"`.
The official documentation for the `debug` field is [here](https://doc.rust-lang.org/cargo/reference/profiles.html#debug).
In short, `"limited"` strips type-level and variable-level debug info.
In release builds... |
rust_dataset_chunk_509657 | rust_dataset.txt | 509,657 | 512 | linked article](https://michaelwoerister.github.io/2015/03/27/rust-xxdb.html) notes that the minimum supported versions are GDB 7.7 and LLDB 310. In practice, newer versions are usually better.
> **Note**: `rust-gdb` is not installed by default on Windows because `gdb` support there is unstable. Use `rust-lldb` instea... |
rust_dataset_chunk_509658 | rust_dataset.txt | 509,658 | 512 |
description: "Guide to debugging crashes for Zed development."
---
# Debugging Crashes
When Zed panics or crashes, it sends a message to a sidecar process that inspects the editor's memory and creates a [minidump](https://chromium.googlesource.com/breakpad/breakpad/+/master/docs/getting_started_with_breakpad.md#the-... |
rust_dataset_chunk_509659 | rust_dataset.txt | 509,659 | 512 | request PRs that skip this process have a _very_ low merge rate. Taking the time to follow our process significantly increases the chances your idea gets picked up and built.
## 1. Why does this matter?
Every feature starts as an idea. Before writing any code, ground it:
- **What problem does this solve?**
- **What... |
rust_dataset_chunk_509660 | rust_dataset.txt | 509,660 | 512 | , shell commands, and environment variables all might behave differently.
- **Persistence across restarts.** Should your feature's state persist across restarts?
- **Accessibility.** Is it keyboard-navigable? Are focus states clear?
- **Platform differences.** Does behavior differ on macOS, Linux, or Windows?
- **Perfo... |
rust_dataset_chunk_509661 | rust_dataset.txt | 509,661 | 512 | screen sharing) are temporarily disabled.
See [Issue #15309: FreeBSD Support] and [Discussion #29550: Unofficial FreeBSD port for Zed] for more.
## Troubleshooting
### Cargo errors claiming that a dependency is using unstable features
Try `cargo clean` and `cargo build`.
--- FILE: zed/docs/src/development/glossa... |
rust_dataset_chunk_509662 | rust_dataset.txt | 509,662 | 512 | `Task`: A future running (or scheduled to run) on a background or foreground executor. Unlike regular futures, tasks do not need `.await` to start. You still need to await them to read their result.
- `Executor`: Used to spawn tasks that run either on the foreground or background thread. Try to run the tasks on the ba... |
rust_dataset_chunk_509663 | rust_dataset.txt | 509,663 | 512 | is mostly passed around for rendering.
- `Modal`: A UI element that floats on top of the rest of the UI
- `Picker`: A struct representing a list of items floating on top of the UI (Modal). You can select an item and confirm. What happens on select or confirm is determined by the picker's delegate. (The 'Modal' in the ... |
rust_dataset_chunk_509664 | rust_dataset.txt | 509,664 | 512 | Screenshot for the MultiBuffer feature" src="https://github.com/user-attachments/assets/d59dcecd-8ab6-4172-8fb6-b1fc3c3eaf9d" />
## Editor
- `Editor`: The text editor type. Most editable surfaces in Zed are an `Editor`, including single-line inputs. Each pane in the image above contains one or more `Editor` instances... |
rust_dataset_chunk_509665 | rust_dataset.txt | 509,665 | 512 |
cargo run
```
And to run the tests:
```sh
cargo test --workspace
```
In release mode, the primary user interface is the `cli` crate. You can run it in development with:
```sh
cargo run -p cli
```
## Installing a development build
You can install a local build on your machine with:
```sh
./script/install-linux
`... |
rust_dataset_chunk_509666 | rust_dataset.txt | 509,666 | 512 | c82/script/bundle-linux#L65-L67) on your system.
- For an example of a complete build script, see [script/bundle-linux](https://github.com/zed-industries/zed/blob/935cf542aebf55122ce6ed1c91d0fe8711970c82/script/bundle-linux).
- You can disable Zed's auto updates and provide instructions for users who try to update Zed ... |
rust_dataset_chunk_509667 | rust_dataset.txt | 509,667 | 512 | well with sandboxes. See [this discussion](https://github.com/zed-industries/zed/pull/12006#issuecomment-2130421220).
## Flatpak
> Zed's current Flatpak integration exits the sandbox on startup. Workflows that rely on Flatpak's sandboxing may not work as expected.
To build & install the Flatpak package locally foll... |
rust_dataset_chunk_509668 | rust_dataset.txt | 509,668 | 512 | not work without frame pointers.
- Make the output file user owned:
run `sudo chown $USER:$USER perf.data`
- Get build info:
Run zed again and type {#action zed::About} in the command pallet to get the exact commit.
The `perf.data` file can be sent to Zed together with the exact commit.
### Later
This can be ... |
rust_dataset_chunk_509669 | rust_dataset.txt | 509,669 | 512 | /)
```sh
xcode-select --install
```
- Ensure that the Xcode command line tools are using your newly installed copy of Xcode:
```sh
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -license accept
```
- Install `cmake` (required by [a dependency](https://docs.rs/was... |
rust_dataset_chunk_509670 | rust_dataset.txt | 509,670 | 512 | =1 cargo run -p zed --bin zed-visual-test-runner --features visual-tests
```
> **Note:** In the future, baselines may be stored externally. For now, they
> remain local-only to keep the git repository lightweight.
## Sampling released builds
How to get a symbolicated CPU profile from a released (non-dev) Zed instanc... |
rust_dataset_chunk_509671 | rust_dataset.txt | 509,671 | 512 | runFirstLaunch` and try downloading the toolchain again.
### Cargo errors claiming that a dependency is using unstable features
Try `cargo clean` and `cargo build`.
### Error: 'dispatch/dispatch.h' file not found
If you encounter an error similar to:
```sh
src/platform/mac/dispatch.h:1:10: fatal error: 'dispatch/d... |
rust_dataset_chunk_509672 | rust_dataset.txt | 509,672 | 512 | verification
If you build Zed frequently, macOS may keep verifying new builds, which can add a few seconds to each iteration.
To fix this, you can:
- Run `sudo spctl developer-mode enable-terminal` to enable the Developer Tools panel in System Settings.
- In System Settings, search for "Developer Tools" and add you... |
rust_dataset_chunk_509673 | rust_dataset.txt | 509,673 | 512 | ustries/zed/tree/main/crates/lsp) handles communication with external LSP server.
- [`language`](https://github.com/zed-industries/zed/tree/main/crates/language) drives `editor`'s understanding of language - from providing a list of symbols to the syntax map.
- [`collab`](https://github.com/zed-industries/zed/tree/main... |
rust_dataset_chunk_509674 | rust_dataset.txt | 509,674 | 512 | each frame. This is particularly useful when comparing rendering performance between different versions or when optimizing frame rendering code.
### Using ZED_MEASUREMENTS
To enable performance measurements, set the `ZED_MEASUREMENTS` environment variable:
```sh
export ZED_MEASUREMENTS=1
```
When enabled, Zed will... |
rust_dataset_chunk_509675 | rust_dataset.txt | 509,675 | 512 | allocation data for the Zed process
Zed will request administrator permission. Once granted, recording will begin.
### Saving or canceling
While a trace is recording, open the command palette and run one of the following:
- `zed: save etw trace`: stops recording and saves the trace to disk
- `zed: cancel etw trace... |
rust_dataset_chunk_509676 | rust_dataset.txt | 509,676 | 512 | that are reverts:
- If the item being reverted **has already been shipped**, include a `Release Notes` line explaining why we reverted, as this is a breaking change.
- If the item being reverted **hasn't been shipped**, edit the original PR's `Release Notes` line to `N/A`; otherwise, it will still be included and th... |
rust_dataset_chunk_509677 | rust_dataset.txt | 509,677 | 512 | dismiss, how errors show)?
## Internationalization & Text {#internationalization-text}
- Are strings concise, clear, and unambiguous?
- Do we avoid internal Zed jargon that only insiders would know?
## User Paths & Edge Cases {#user-paths-edge-cases}
- What does the happy path look like?
- What does the unhappy pa... |
rust_dataset_chunk_509678 | rust_dataset.txt | 509,678 | 512 | at least `Windows 10 SDK version 2104 (10.0.20348.0)` is installed. You can download it from the [Windows SDK Archive](https://developer.microsoft.com/windows/downloads/windows-sdk/).
- Install [CMake](https://cmake.org/download) (required by [a dependency](https://docs.rs/wasmtime-c-api-impl/latest/wasmtime_c_api/)).... |
rust_dataset_chunk_509679 | rust_dataset.txt | 509,679 | 512 | "Microsoft.VisualStudio.Component.VC.Redist.14.Latest",
"Microsoft.VisualStudio.Component.Windows11SDK.26100",
"Microsoft.VisualStudio.Component.VC.CMake.Project",
"Microsoft.VisualStudio.Component.TextTemplating",
"Microsoft.VisualStudio.Component.VC.CoreIde",
"Microsoft.VisualStudio.ComponentG... |
rust_dataset_chunk_509680 | rust_dataset.txt | 509,680 | 512 | **Note:** Visual regression tests are currently macOS-only and require Screen Recording permission. See [Building Zed for macOS](./macos.md#visual-regression-tests) for details.
## Installing from msys2
Zed does not support unofficial MSYS2 Zed packages built for Mingw-w64. Please report any issues you may have with... |
rust_dataset_chunk_509681 | rust_dataset.txt | 509,681 | 512 | [target.'cfg(all())']
rustflags = ["--cfg", "gles"]
```
### Cargo errors claiming that a dependency is using unstable features
Try `cargo clean` and `cargo build`.
### `STATUS_ACCESS_VIOLATION`
This error can happen if you are using the "rust-lld.exe" linker. Consider trying a different linker.
If you are using a ... |
rust_dataset_chunk_509682 | rust_dataset.txt | 509,682 | 512 | -windows-builds\crates\languages)`
Caused by:
failed to load source for dependency `pet`
Caused by:
Unable to update https://github.com/microsoft/python-environment-tools.git?rev=ffcbf3f28c46633abd5448a52b1f396c322e0d6c#ffcbf3f2
Caused by:
path too long: 'C:/Users/runneradmin/.cargo/git/checkouts/python-enviro... |
rust_dataset_chunk_509683 | rust_dataset.txt | 509,683 | 512 | # Diagnostics
Zed gets its diagnostics from the language servers and supports both push and pull variants of the LSP which makes it compatible with all existing language servers.
# Regular diagnostics
By default, Zed displays all diagnostics as underlined text in the editor and the scrollbar.
Editor diagnostics cou... |
rust_dataset_chunk_509684 | rust_dataset.txt | 509,684 | 512 | integration.
---
# Editing Code
Zed provides tools to help you write and modify code efficiently. This section covers the core editing features that work alongside your language server.
## What's in This Section
- **[Code Completions](./completions.md)** — Autocomplete from language servers and AI-powered edit pre... |
rust_dataset_chunk_509685 | rust_dataset.txt | 509,685 | 512 | them.
## Where does Zed get its environment variables from?
How Zed starts affects which environment variables it can use. That includes launching from the macOS Dock, a Linux window manager, or the `zed` CLI.
### Launched from the CLI
If Zed is opened via the CLI (`zed`), it will inherit the environment variables... |
rust_dataset_chunk_509686 | rust_dataset.txt | 509,686 | 512 | the Zed process environment
- if the project was opened from the CLI: the CLI environment
- if the project was not opened from the CLI: the project environment variables obtained by running a login shell in the project's root folder
- optional, explicitly configured environment in settings
### Built-in terminal
Buil... |
rust_dataset_chunk_509687 | rust_dataset.txt | 509,687 | 512 | /src/extensions/capabilities.md ---
---
title: Extension Capabilities
description: "Extension Capabilities for Zed extensions."
---
# Extension Capabilities
The operations that Zed extensions are able to perform are governed by a capability system.
## Restricting capabilities
As a user, you have the option of restr... |
rust_dataset_chunk_509688 | rust_dataset.txt | 509,688 | 512 | `github.com`:
```toml
{ kind = "download_file", host = "github.com", path = ["**"] }
```
To allow any file to be downloaded from a specific GitHub repository:
```toml
{ kind = "download_file", host = "github.com", path = ["zed-industries", "zed", "**"] }
```
### `npm:install`
The `npm:install` capability grants e... |
rust_dataset_chunk_509689 | rust_dataset.txt | 509,689 | 512 | do that in this function. Make sure to check for updates only periodically, as this function is called whenever a user spawns a new debug session with your debug adapter.
You must also implement `dap_request_kind`. This function is used to determine whether a given debug scenario will _launch_ a new debuggee or _atta... |
rust_dataset_chunk_509690 | rust_dataset.txt | 509,690 | 512 | logic across adapters.
Your extension can define one or more debug locators. Each debug locator must be registered in the `extension.toml`:
```toml
[debug_locators.my-debug-locator]
```
Locators have two components.
First, each locator is run on each available task to figure out if any of the available locators can... |
rust_dataset_chunk_509691 | rust_dataset.txt | 509,691 | 512 | # Developing Extensions {#developing-extensions}
Zed extensions are Git repositories containing an `extension.toml` manifest. They can provide languages, themes, debuggers, snippets, and MCP servers.
## Extension Features {#extension-features}
Extensions can provide:
- [Languages](./languages.md)
- [Debuggers](./de... |
rust_dataset_chunk_509692 | rust_dataset.txt | 509,692 | 512 | installed prior to the installation of the dev extension. After successful installation, the `Extensions` page will indicate that the upstream extension is "Overridden by dev extension".
## Directory Structure of a Zed Extension
A Zed extension is a Git repository that contains an `extension.toml`. This file must con... |
rust_dataset_chunk_509693 | rust_dataset.txt | 509,693 | 512 | ::Extension for MyExtension {
// ...
}
zed::register_extension!(MyExtension);
```
> Since your extension will be compiled to WebAssembly, some Rust features might not work like you would expect them to. For example, `cfg` - directives will not work and `std::env::var` will also not yield the expected results. Ins... |
rust_dataset_chunk_509694 | rust_dataset.txt | 509,694 | 512 | "
},
"named_directory_icons": {
"stylesheets": {
"collapsed": "./icons/folder-stylesheets.svg",
"expanded": "./icons/folder-stylesheets-open.svg"
}
},
"chevron_icons": {
"collapsed": "./icons/chevron-right.svg",
"expanded": "./icons/chevron-dow... |
rust_dataset_chunk_509695 | rust_dataset.txt | 509,695 | 512 | : zed/docs/src/extensions/languages.md ---
---
title: Language Extensions
description: "Overview of programming language support in Zed, including built-in and extension-based languages."
---
# Language Extensions
Language support in Zed has several components:
- Language metadata and configuration
- Grammar
- Queri... |
rust_dataset_chunk_509696 | rust_dataset.txt | 509,696 | 512 | _block_name
- scope_opt_in_language_servers
- collapsed_placeholder
- auto_indent_on_paste, auto_indent_using_last_non_empty_line
- overrides: `[overrides.element]`, `[overrides.string]`
-->
## Grammar
Zed uses the [Tree-sitter](https://tree-sitter.github.io) parsing library to provide built-in language-specific feat... |
rust_dataset_chunk_509697 | rust_dataset.txt | 509,697 | 512 | scheme
(string) @string
(pair
key: (string) @property.json_key)
(number) @number
```
This query marks strings, object keys, and numbers for highlighting. The following is the full list of captures supported by themes:
| Capture | Description |
| ------------------------... |
rust_dataset_chunk_509698 | rust_dataset.txt | 509,698 | 512 | type.builtin | Captures built-in types |
| @variable | Captures variables |
| @variable.special | Captures special variables |
| @variable.parameter | Captures function/method parameters |
| @variant | Captures varia... |
rust_dataset_chunk_509699 | rust_dataset.txt | 509,699 | 512 | the entire key-value pair |
| @context | Captures elements that provide context for the outline item |
| @context.extra | Captures additional contextual information for the outline item |
| @annotation | Captures n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.