Skip to content

feat(zed): an extension for Zed, published through Zed's extension registry #21

Closed

Description

@Sunrisepeak

Motivation

Zed users of mcpp projects have no mcpp-ide: the editor design of 2026-11-21 (.agents/docs/2026-11-21-editor-surfaces-and-feature-matrix.md, "Zed, tier B") plans an extension, and Zed's extension registry (zed-industries/extensions) is how a Zed user installs one.

Where does it belong?

A plugin (mide-plugins/zed/): it maps the backend's LSP onto Zed and decides nothing. The backend already serves an editor named zed over standard LSP (completion, hover and diagnostics of mcpp.toml), so no backend path changes and no series begins.

Design

  • mide-plugins/zed/: extension.toml, a Rust crate compiled to wasm32-wasip2, its license, its README. The server is declared for Zed's TOML language and starts only in a worktree with an mcpp.toml.
  • The backend is the one of the extension's own series: lsp.mcpp-ide.binary in Zed's settings, else the release vX.Y.0's mcpp-ide-X.Y.0-openkal-bundle-all.tar.gz, downloaded once into the extension's work directory (GitHub, then the GitCode mirror xlings-res/mcpp-ide), started as its runner and image. Not a mcpp-ide from PATH: Zed's extension cannot read the version a backend answers, so it could not refuse one of another series.
  • What the registry requires: the id mcpp-ide-language-server (an extension that provides a language server only ends in -language-server or -lsp, and an id never changes), a license in the extension's own directory, a server downloaded rather than bundled, and the registry's toolchain (Rust 1.90, wasm32-wasip2).
  • Its version, extension.toml's, is a seventh statement of the series (1.6.0), and zed-vX.Y.Z tags a patch; Zed's registry builds the tagged commit, so the GitHub release carries no file of its own.
  • CI: a zed component (components.tsv), a job that runs the crate's tests and builds it for wasm32-wasip2.

Tasks, the debug locator and a C++ server for build.mcpp, which the design also plans for Zed, follow in pull requests of their own.

Alternatives considered

  • Start mcpp-ide from PATH first (the xlings package): refused above; a user names one with lsp.mcpp-ide.binary.
  • The id mcpp: it would have to provide more than a language server today, and the id cannot change later.

Activity

  1. added
    enhancement
    on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions