Making Python in Zed Fun
Zed 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.
Related posts
- 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.
- 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.
- Copilot x Zed
Zed mediumAdeptGitHub 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.
- The Debugger is Here
Zed mediumAdeptZed now ships a native debugger built on the Debug Adapter Protocol, with out-of-the-box support for Rust, C/C++, JavaScript, Go and Python. "Locators" turn build tasks such as Cargo runs into debug configurations automatically. Internally it uses a two-layer design: a data layer talks to debug adapters, caches responses by request arguments, lazily fetches and invalidates stale state, and a UI layer queries only what it renders, which sets up future collaborative debugging. Extensions can plug in any of the 70+ DAP implementations, and inline variable values come from Tree-sitter scope queries rather than the LSP inline-values request.
- Zed Weekly: #18
Zed easyNoviceZed's semantic index now batches embedding requests by token count rather than span count, cutting OpenAI requests and improving throughput and consistency. A new embeddings cache skips re-embedding unchanged tree-sitter spans and reduces incremental indexing tokens by about 75%. The first inline AI assistant has merged. Other updates: Tailwind completions using multiple language servers per file, automatic Python virtualenv activation in v0.102, reconnection handling for collaborative channel notes, rust-analyzer inlay hint fixes, and progress on replace-in-buffer search.