Copilot x Zed
GitHub Copilot is now available in Zed v0.82, integrated by reusing the undocumented, minified Copilot LSP server shipped in the Neovim plugin, which Zed's built-in LSP support could drive directly. Supporting it required a new modal UI for Copilot's device-code OAuth flow and a 'suggestions' layer in Zed's DisplayMap that splices styled multi-line text into the buffer alongside folding and wrapping, covered by randomized testing. To keep it from being intrusive, Zed added per-language disable settings and a 75ms debounce, and gives the language's real LSP autocomplete priority over Copilot on conflicts.
Related posts
- Building a Text Editor in the Times of AI
Zed easyNoviceZed's co-founders Nathan, Max and Antonio describe how they use AI for programming. They prefer chat-style assistants with stronger models over Copilot's per-keystroke completions, and say supplying the right context is the main obstacle in a large Rust codebase. Zed's inline assist renders LLM output as live edits using a streaming diff based on a modified Needleman-Wunsch algorithm, with a cost function that favours insertions and deletions and a small lookahead. They adopted this after function-calling approaches failed to produce reliable precise edit locations. The conversation also covers plans for AI features in Zed.
- Zed Weekly: #17
Zed easyNoviceWeekly team update from the Zed editor team covering AI features, channels, language support and UI work. Highlights include an inline assistant that needed a custom incremental diff algorithm to apply GPT's token-by-token stream as edit hunks, an eager/lazy operation queue for the semantic index, and per-language and per-syntax-scope word-character configuration so PHP `$` variables and kebab-case Tailwind classes inside JSX autocomplete correctly. Other items cover vim relative line numbers and `.` repeat, collaborative markdown channel notes, Taffy-based layout with Tailwind-style Rust helpers, inlay hint resolve work that could shrink rust-analyzer responses by over 50%, and a version-string sorting bug that appeared when versions rolled from 0.99 to 0.100.
- Zed Weekly: #28
Zed mediumAdeptZed is rewriting its editor as Zed2 in three phases (runnable core editing, productivity features like collaboration, terminal and Vim mode, then flagship features like Assistant, Copilot and Chat), aiming for a preview by end of 2023 and open-sourcing shortly after Zed2 supersedes Zed1. Team updates cover porting core UI such as popovers, autocomplete menus and breadcrumbs. The UI component work introduces a shared `ButtonLike` base for `Button` and `IconButton` and Rust traits like `Selectable` that concrete components delegate to, keeping APIs and styling consistent. Other updates include typescript-language-server, eslint and prettier fixes, plus an idea for searching gitignored directories in the file finder.
- Zed Weekly: #26
Zed mediumAdeptZed's team reports progress porting the editor to GPUI 2, including a new action- and key-context-based keyboard handling API shown with a Rust menu example. Other updates: tsserver integration broke when an upstream LSP wrapper removed deprecated CLI flags, a reminder to track changes in unpinnable dependencies. The theme system now models user themes as overlays on a base theme, and a Cargo feature flag breaks the circular dependency between the theme importer and the generated themes it emits. Smaller notes cover Prettier and diagnostics fixes, component stories, telemetry, and passing 1000 weekly active installs.
- Making Python in Zed Fun
Zed easyNoviceZed reworked its Python support around a generic per-language toolchain selector backed by Microsoft's python-environment-tools, the same library Visual Studio Code uses for venv detection. A manifest tree tracks the nearest pyproject.toml so each monorepo sub-project gets its own toolchain. Zed also runs a separate language server per toolchain rather than making servers juggle multiple environments. Basedpyright is now the default LSP, ty and Ruff work out of the box, Pyrefly is available via an extension, and the team plans to move Astral's ty into core and add notebooks in 2026.