Zed编辑器Windows版开发受阻,难题如何攻克?

IT之家 8 月 23 日消息科技媒体 NeoWin 昨日(8 月 22 日)发布博文报道称 Rust 编写的跨平台代码编辑器 Zed 计划于 2025 年秋发布 1.0 版本,但 Windows 版开发受阻。

IT之家注:Zed 是一款基于 Rust 的跨平台代码编辑器,已在 Linux、macOS 和 Windows 预览测试多年,计划于 2025 年秋推出 1.0 正式版。

Zed 联合创始人 Max Brunsfeld 于 8 月 19 日发布博文,报告称 Linux 和 macOS 版 Zed 开发进展顺利,但在开发 Windows 版本过程中,遇到多重技术障碍,导致开发节奏明显放缓。

Windows 移植 Zed 团队由四名全职工程师组成,过去六周专注解决渲染兼容性问题。该团队原本沿用 Linux 版的 Vulkan 渲染后端,但在部分 Windows 用户环境中出现兼容性故障

团队为适配 DirectX 渲染,特别重构了基于 DirectX 11 的新后端,兼容 Windows 7 及以上版本,并用 HLSL 重新实现 GPU 着色器。

Inspecting Zed's rendering using RenderDoc. Here we're viewing the glyph atlas—a GPU texture that contains one copy of every glyph in the frame

此外在调试渲染器方面,原计划使用 RenderDoc 工具,但因 Zed 采用 Direct2D 文本渲染而导致启动即崩溃,团队只好改用 DirectWrite。

与此同时,Windows 平台暴露出 GPU 显存分配效率低下的问题,这在采用统一内存架构的 macOS 上并不明显。为解决此问题,Zed 开发者与 Long Bridge Securities 合作优化了内存使用策略

Using RenderDoc to inspect the draw call where paths are copied from an intermediate MSAA texture into the final scene

平台特性差异也影响了更新机制。与 Linux、macOS 版本不同,Windows 版 Zed 必须先关闭 Zed.exe 才能覆盖更新,团队为此通过引入专用的“自动更新助手程序规避了此限制。此外,崩溃报告机制适配其独有的系统接口,也需针对 Windows 系统重写。

团队表示在接下来的几周时间里,将重点完成五项任务

实现符合 Windows 用户习惯快捷键快捷方式

修复通过 SSH 从 Windows 编辑远程 Linux 文件时的漏洞

为 WSL 提供一流支持;

解决扩展开发中路径规范差异问题;

提升 Windows 版的运行速度,让其与 macOS 一样流畅。

尽管目前遇到的挑战较多,但官方未提及 Windows 版会推迟发布。

Published by

风君子

独自遨游何稽首 揭天掀地慰生平