Zed 1.21 Lets Developers Run Language Server Commands Without Cursor Context

Zed 1.21 adds a language server command picker that surfaces custom LSP commands beyond code actions, unlocking workflows like Markdown Oxide daily journals.

·
·
  • Zed 1.21 adds lsp command selector: toggle for invoking any LSP-advertised command with arguments.
  • Works with servers like Markdown Oxide; run today to open a dated journal file.
  • Closes a long-standing feature gap versus VS Code and Neovim.
  • Release also ships BYOK for Claude Opus 5.5 and GPT-6 Astra, Sol, Luna.
  • New agent.prevent_idle_sleep setting keeps machines awake during long agent turns.
  • Adds SuperGrok sign-in and DeepSeek Flash 4.1 support in the Agent Panel.

Zed 1.21 adds a picker for commands advertised by an active language server. Developers can now invoke workspace-level server functions directly, including commands that do not depend on the cursor’s position.

Server commands enter the palette

The new action, lsp command selector: toggle, lists commands declared through the Language Server Protocol’s executeCommandProvider capability. Pressing Tab moves focus to an arguments field, where users can provide any parameters the selected command accepts.

After a selection, Zed calls the standard workspace/executeCommand method with the command identifier and optional arguments. The active server defines each command’s behavior and argument requirements.

Cursor context was a constraint

Zed previously routed custom language-server functions through code actions, which are requested for a specific document and range. That approach works for refactors and targeted fixes, but it is awkward for workspace operations such as creating files, running project commands, or opening generated resources.

The picker gives those operations a dedicated interface. The CFML extension’s documentation, for example, had described its workspace/executeCommand handlers as accessible through code actions. Zed now exposes advertised commands directly, matching support already available in editors such as VS Code and Neovim.

Markdown Oxide shows the flow

Markdown Oxide, a language server for Markdown knowledge bases, provides a concrete example. Selecting its today command creates and opens a journal file named for the current date. The workflow stays inside the editor and requires no shell alias or custom task.

The rest of Zed 1.21

The release also includes rendering improvements, agent settings, authentication options, and additional model support.

Change Details
Faster rendering Improves performance in syntax-highlighted files and Markdown code blocks.
agent.prevent_idle_sleep Prevents system sleep while agent threads are running. The setting is enabled by default.
SuperGrok sign-in Lets SuperGrok subscribers use Grok models in the Agent Panel.
Additional models Adds DeepSeek Flash 4.1 and bring-your-own-key support for Claude Opus 5.5 and GPT-6 Astra, Sol, and Luna.
agent.threads_sidebar_default_width Sets the default width of the Threads Sidebar.

Run a server command

  1. Update Zed to version 1.21.
  2. Open a project with an active language server.
  3. Open the command palette.
  4. Run lsp command selector: toggle.
  5. Select an advertised command.
  6. Press Tab and enter arguments if the command requires them.

Users who invoke the picker frequently can assign the action a key binding. The available entries will vary by language server because Zed displays the commands each server advertises.

Extension authors must advertise commands

A language server must declare each command under executeCommandProvider during initialization and implement the corresponding workspace/executeCommand handler. A handler that exists without an advertised command will not appear in the picker.

The selector gives custom servers a direct route to workspace-level workflows, including daily-note creation, code generation, and project-specific automation. Those operations can now use the standard LSP command mechanism instead of relying on cursor-bound actions, editor tasks, or shell commands.

Trending
  • No trending articles

Comments

avatar

Next Reads