黄奕彬

外部精选

Zed 1.15.0

本文来自外部来源,不是黄奕彬的原创文章。本站提供原文入口,并在采集端生成 AI 结构化摘要、解读与中文翻译(如有),一切以原文为准。

阅读原文(zed.dev)
来源
Zed stable releases ↗
作者 / 署名
未标注
发布日期
本站收录时间
原文域名
zed.dev

以上时间均为北京时间;来源更新时间由来源提供,不代表首次发布时间。

结构化摘要 AI 生成

背景与问题

这是 Zed 编辑器 stable 渠道 1.15.0 版本的发布说明,正文自述为『This week's release』(本周发布)。

面向 Zed 用户,回应日常使用痛点:Git 差异展示基准不可配置、Project Panel 文件无法拖拽到外部应用、JSX/TSX 编辑增强不足,以及终端、Vim/Helix 模式、WSL、远程项目等数十处缺陷。

方法或内容

以分类清单形式发布变更:

  • Git:新增 git.diff_base 设置与 gutter.git_gutter_width
  • 平台:macOS 与 Linux Wayland 支持从 Project Panel 拖拽文件到外部应用
  • 语言:JSX/TSX 自定义元素联动编辑、return 与箭头函数体内 Emmet 补全、打开 .bat/.cmd 时建议安装 windows-batch 扩展
  • AI:OpenAI 兼容 edit predictions 支持自托管 Sweep Next Edit 模型
  • 其他:multiple_selections 键位上下文、项目切换器改进
  • 另列数十项 Bug 修复与一项 Copilot 认证破坏性变更

关键发现 / 结果

  • git.diff_base:默认 head(未提交改动对比 HEAD),可选 default_branch(当前分支全部改动对比默认分支 merge base),并以菜单项『Diff Against Default Branch』提供
  • 修复捆绑 npm 缓存无限增长(原文称可能占用多个 GB 磁盘)
  • 修复图片在磁盘反复更新时预览的内存泄漏
  • 修复 WSL 禁用 automount 时远程服务器安装失败、Docker Compose dev container 默认不执行配置的 entrypoint
  • 修复 Vim/Helix 模式多处键位与缩进问题、Windows 上 IME 候选窗闪烁
  • 破坏性变更:Copilot Chat 与 edit predictions 认证分离,现有用户需重新认证(#60535)
  • 未提供总体性能数据

结论与意义

本次为稳定版常规迭代,原文未给出总体结论或性能对比数据。适用边界:git.diff_base 仅影响 editor gutters、file-status colors 与 git: diff 三处展示;拖拽到外部应用仅支持 macOS 与 Linux Wayland;语言增强仅限 JSX/TSX;Copilot 用户必须重新认证才能继续使用。

AI 解读 AI 生成

方法:按「时空变量」分析(时间 / 空间 / 变量,严格区分包含、相关与因果),对象包括原文作者、署名人员与关键技术及其实际原理;结论用「元反空」(元思考、反思考、空思考、综合)整理。

时间:何时发生,现在是否仍成立

来源日期为北京时间 2026-08-12 23:53:56,正文自述为『This week's release』,属周更节奏的 stable 版本发布。所列变更对 1.15.0 这一版本成立;后续版本是否保持相同行为、默认值或菜单项,原文未说明。

空间:谁的环境 / 场景

适用对象:Zed 编辑器 stable 渠道 1.15.0 用户,覆盖 macOS、Linux(X11/Wayland)与 Windows(含 WSL)。具体边界:

  • 拖拽到外部应用:仅 macOS 与 Linux Wayland
  • Emmet 补全与联动编辑:仅 JSX/TSX 文件
  • Sweep Next Edit:OpenAI 兼容的自托管 edit predictions 场景
  • 部分修复分别针对 WSL、X11、Windows、远程(scp/sftp)等特定环境

变量:实际改变了什么

  • 新增设置:git.diff_base(默认 head)、gutter.git_gutter_width、multiple_selections 键位上下文
  • 新增能力:跨应用拖拽文件、JSX/TSX 联动编辑与 Emmet 场景扩展、自托管 Sweep Next Edit 模型支持
  • 行为变更(破坏性):Copilot Chat 与 edit predictions 认证分离,现有用户必须重新认证
  • 消除的缺陷:npm 缓存无限增长、图片预览内存泄漏及多处 UI/终端/搜索/远程问题
  • 价格或商业模式变化:原文未说明

区分:包含 ≠ 相关 ≠ 因果

各条目均附 PR 编号与贡献者致谢,属明确的变更事实而非相关性陈述。有明确因果表述的例子:npm 缓存缺陷『could consume many gigabytes of disk』(缺陷导致磁盘占用);Copilot 认证分离导致现有用户需重新认证。

包含/并列关系:git.diff_base 同时作用于 gutters、file-status colors 与 git: diff 三处,是同一设置的多处生效而非因果;语言功能归属于 JSX/TSX 范畴。其余条目之间无因果主张。

对象:作者/署名与关键技术原理

结构化作者字段为空,原文未标注作者;正文中的『Shipped by the Zed Guild 🛡️』及对各贡献者的 thanks 仅为发布与致谢信息,不构成署名。关键技术按原文描述:

  • git.diff_base:切换差异对比基准(HEAD,或与仓库默认分支的 merge base)
  • Sweep Next Edit:自托管、OpenAI 兼容的 edit predictions 模型,含 sweep prompt 格式与对 sweep-next-edit 模型名的推断
  • 联动编辑与 Emmet:原文仅说明作用于 JSX/TSX 的自定义元素与函数体,实现原理原文未说明
  • MCP servers:出现在 Agent 相关修复条目中,其实际原理原文未说明

元反空综合结论

元:这是 Zed 周更稳定版的变更记录,本质在回答『1.15.0 改了什么、升级是否受影响』,核心增量是 Git 差异基准可配置、跨应用拖拽与 JSX/TSX 编辑增强。

反:最可能失效或有边界的部分——设置默认值(如 git.diff_base 的 head)可能随版本调整;Wayland 拖拽依赖特定显示协议;Copilot 重新认证是一次性迁移动作,相关说明会过期;各修复仅针对所列 PR 场景,不代表同类问题全部消除。

空:去掉叙事后剩下的必要事实——新增的设置与能力、带编号的缺陷修复清单、一项强制重新认证的破坏性变更;无性能基准数据、无市场或定价信息。

综合:可信度较高(逐条附 PR 编号与致谢),可作为升级 1.15.0 的变更依据;性能表现与长期兼容性原文未说明,需自行验证。

中文译文 AI 生成

本周发布包含新的 git.diff_base 设置,用于选择编辑器 gutter、文件状态颜色以及 git: diff 显示相对于 HEAD 的未提交更改,还是显示相对于与仓库默认分支的 merge base 的当前分支全部更改。此外,还支持在 macOS 和 Linux Wayland 上将文件从 Project Panel 拖拽到外部应用。

Web 开发者还获得了 JSX 和 TSX 中自定义元素的关联编辑,以及 return 与箭头函数体中的 Emmet 补全。

由 Zed Guild 发布 🛡️

  • 新增支持将文件从 Project Panel 拖拽到外部 macOS 应用。(#58161;感谢 notJoon)
  • 新增 multiple_selections 按键上下文,用于在存在多个选区时分配不同的按键绑定。(#60018;感谢 AidanV)
  • Agent:修复了 Agent Panel 中终端输出的第一行有时被隐藏的问题。(#61939;感谢 timvermeulen)
  • 修复了 Markdown 预览在横向滚动手势期间发生垂直滚动的问题。(#61797;感谢 feitreim)
  • 修复了 Docker Compose dev container 默认不运行其配置的 entrypoint 的问题。(#61897;感谢 alanpjohn)
  • 修复了当另一个 Zed 窗口持续输出终端内容时 IME 候选窗口闪烁的问题。(#62086;感谢 feeiyu)
  • 修复了在 Vim 或 Helix 模式下使用多键绑定退出插入模式后光标位置错误的问题。(#62080;感谢 lingyaochu)
  • 修复了 Linux 上 Agent 侧栏标题未对齐的问题。(#62079;感谢 feeiyu)
  • 修复了公共和私有频道标签页图标与 Collaboration Panel 中显示的图标不一致的问题。(#62114;感谢 lingyaochu)
  • 修复了 Windows 上启用 Vim 或 Helix 模式时发行说明通知无法通过 escape 关闭的问题。(#61759;感谢 amtoaer)
  • 修复了 solo diff 视图中出现多余的展开/折叠全部文件控件的问题。(#61998;感谢 chirivelli)

了解 Zed Guild。

功能

AI

  • 在 OpenAI 兼容的编辑预测中新增对自托管 Sweep Next Edit 模型的支持,包括 sweep prompt 格式以及对 sweep-next-edit 模型名称的 infer 检测。(#51139;感谢 avoidthekitchen)

Git

  • 新增 git.diff_base 设置,用于选择编辑器 gutter、文件状态颜色以及 git: diff 显示相对于 HEAD 的未提交更改(head,默认值),还是显示相对于与仓库默认分支的 merge base 的当前分支全部更改(default_branch)。该设置在编辑器控制菜单中也可通过 "Diff Against Default Branch" 使用。(#61501;感谢 samuelcolvin 在 #60398 中的早期实现)
  • 新增 gutter.git_gutter_width 设置,用于配置编辑器 gutter 中 Git diff 指示器的宽度。(#61304;感谢 evanvin)

语言

  • 为 JSX 和 TSX 中的自定义元素新增了关联编辑。(#58578)
  • 为 JSX 和 TSX 启用了 return 与箭头函数体中的 Emmet 补全。(#53688)
  • 新增在打开 .bat 和 .cmd 文件时建议安装 windows-batch 扩展。(#62363;感谢 pleahmacaka)

Linux

  • 新增支持将文件从 Project Panel 拖拽到外部 Linux Wayland 应用。(#61947;感谢 Lampan-git)

其他

  • 改进了项目切换器,允许关闭当前选中的项目并自动切换到相邻的本地或远程项目。(#60602;感谢 mateioprea)
  • 改进了扩展仓库链接,以显示特定于提供方的图标。(#58108;感谢 albertbogusz)
  • 改进了已安装的开发扩展,使其显示所提供的功能并遵循功能筛选器。(#61850)

错误修复

  • Agent:修复了 worktree 打开后新项目线程中缺失 MCP 服务器的问题。(#62026)
  • Agent:修复了 MCP 扩展配置对话框出现在其他工作区的问题。(#61882)
  • 修复了撤销或重做 Project Panel 操作时未经确认就将含有未保存编辑的文件移入废纸篓的问题。(#62294)
  • 修复了在同一窗口打开远程项目期间移除工作区时发生的崩溃。(#62028)
  • 修复了内置 npm 缓存无限增长的问题,该问题可能占用数 GB 的磁盘空间。(#61750)
  • 修复了字符串形式的 dev container 生命周期命令,使其按照 Dev Container 规范的要求通过 /bin/sh -c 执行。(#60792;感谢 rabindra789)
  • 修复了部分 Windows 设备上 UI 元素闪烁的问题。(#62069)
  • 修复了 Zed 窗口在 X11 上重新显露后有时不重绘的问题。(#61162;感谢 mTvare6)
  • 修复了 Agent 终端命令在语法错误后卡在 shell 提示符的问题。(#62078;感谢 procr1337)
  • 修复了归档线程时窗口切换到其他项目、或在窗口关闭时可能崩溃的问题。(#62141)
  • 修复了 Settings UI 有时不显示已配置的 MCP 服务器的问题。(#61928)
  • 修复了预览在磁盘上被反复更新的图像时的内存泄漏。(#58803;感谢 ronharel02)
  • 修复了未配置 ChatGPT Subscription 提供方的用户在每次启动时都记录冗余的 "Failed to authenticate provider: ChatGPT Subscription" 错误的问题。(#61949;感谢 NewtonChutney)
  • 修复了在启用会话恢复的情况下从 CLI 启动 Zed 时 macOS 上打开多余窗口的问题。(#61814;感谢 RemcoSmitsDev)
  • 修复了 Vim 模式下在上方插入行时的自动缩进。(#52594;感谢 143mailliw)
  • 修复了当目标文件已打开时 File Finder 提示创建文件而非导航到某一行的问题。(#55875)
  • 修复了 Git submodule 被注册到父仓库的 .git/modules 目录而非其自身路径下的问题。(#61859;感谢 007qr)
  • 修复了 JavaScript、TypeScript 和 TSX 中类实例化高亮不一致的问题。(#61890;感谢 IbrahimKhan12)
  • 修复了上传远程文件时传递给 scp 或 sftp 的参数错误的问题。(#56080;感谢 cocool97)
  • 修复了语法错误恢复省略分隔符时括号匹配错误的问题。(#61604;感谢 mTvare6)
  • 修复了工作区符号搜索中出现错误符号种类的问题。(#62458;感谢 Huliiiiii)
  • 修复了手动调整过大小的面板忽略其配置默认宽度的后续更改的问题。(#61855;感谢 JoeJoeflyn)
  • 修复了从现有远程连接打开项目时未遵循 default_open_behavior 设置的问题。(#61048;感谢 aetosdios27)
  • 修复了项目搜索和缓冲区搜索在处理带断言的正则表达式时返回不完整结果的问题。(#62158)
  • 修复了在 WSL 中禁用 automount 时远程服务器安装失败的问题。(#57624;感谢 tjmchenry)
  • 修复了当多个语言服务器为同一范围提供 token 时语义 token 高亮被不可预测地应用的问题。(#61735;感谢 DrewRidley)
  • 修复了某个服务器刷新其语义 token 后来自其他语言服务器的语义 token 高亮消失的问题。(#61795)
  • 修复了终端路径超链接相对于当前工作目录而非该行打印时所处目录进行解析的问题。(#52454;感谢 saberoueslati)
  • 修复了终端中树形分支符号附近的单词选择问题。(#62076;感谢 macayu17)
  • 修复了启用全屏时 Agent Panel 的全屏按钮未显示为激活状态的问题。(#62041;感谢 interkelstar)
  • 修复了 Collab Panel 中联系人查找器错误继承频道搜索查询的问题。(#61363)
  • 修复了将本地 Windows 文件拖入连接到 WSL 远程的 Zed 窗口的问题。(#57146;感谢 carbofish)
  • 修复了当仓库的 info/exclude 命名了父目录时工作树被报告为完全被忽略的问题。(#62325;感谢 hferreiro)

重大变更与通知

  • 通过为 Copilot Chat 与 edit predictions 分离身份验证,提升了 Copilot Chat 提供程序的健壮性。现有用户需要重新向 Copilot 进行身份验证。(#60535)
展开原文提取正文(采集端自动提取,可能有缺失)

This week's release includes a new git.diff_base setting for choosing whether editor gutters, file-status colors, and git: diff show uncommitted changes against HEAD or all current-branch changes against the default branch's merge base, plus support for dragging files from the Project Panel to external apps on macOS and Linux Wayland; web developers also get linked editing for custom elements in JSX and TSX and Emmet completions in return and arrow-function bodies. Shipped by the Zed Guild 🛡️

Added support for dragging files from the Project Panel to external macOS apps. (#58161; thanks notJoon) Added the multiple_selections key context for assigning different keybindings when multiple selections are active. (#60018; thanks AidanV) Agent: Fixed the first line of terminal output sometimes being hidden in the Agent Panel. (#61939; thanks timvermeulen) Fixed Markdown previews scrolling vertically during horizontal scroll gestures. (#61797; thanks feitreim) Fixed Docker Compose dev containers not running their configured entrypoints by default. (#61897; thanks alanpjohn) Fixed the IME candidate window flickering when another Zed window had continuous terminal output. (#62086; thanks feeiyu) Fixed incorrect cursor placement after using a multi-key binding to leave insert mode in Vim or Helix mode. (#62080; thanks lingyaochu) Fixed misaligned Agent sidebar headers on Linux. (#62079; thanks feeiyu) Fixed public and private channel tab icons not matching the icons shown in the Collaboration Panel. (#62114; thanks lingyaochu) Fixed release notes notifications not closing with escape when Vim or Helix mode was enabled on Windows. (#61759; thanks amtoaer) Fixed a redundant expand/collapse-all-files control appearing in solo diff views. (#61998; thanks chirivelli)

Learn about the Zed Guild. Features AI

Added support for self-hosted Sweep Next Edit models in OpenAI-compatible edit predictions, including the sweep prompt format and infer detection for sweep-next-edit model names. (#51139; thanks avoidthekitchen)

Git

Added the git.diff_base setting to choose whether editor gutters, file-status colors, and git: diff show uncommitted changes against HEAD ("head", the default) or all current-branch changes against the merge base with the repository's default branch ("default_branch"). The setting is also available as "Diff Against Default Branch" in the editor controls menu. (#61501; thanks samuelcolvin for an earlier implementation in #60398) Added the gutter.git_gutter_width setting to configure the width of Git diff indicators in the editor gutter. (#61304; thanks evanvin)

Languages

Added linked editing for custom elements in JSX and TSX. (#58578) Enabled Emmet completions in return and arrow-function bodies for JSX and TSX. (#53688) Added a suggestion to install the windows-batch extension when opening .bat and .cmd files. (#62363; thanks pleahmacaka)

Linux

Added support for dragging files from the Project Panel to external Linux Wayland apps. (#61947; thanks Lampan-git)

Other

Improved the project switcher to allow closing the currently selected project and automatically switching to a neighboring local or remote project. (#60602; thanks mateioprea) Improved extension repository links to show provider-specific icons. (#58108; thanks albertbogusz) Improved installed development extensions to display their provided features and respect feature filters. (#61850)

Bug Fixes

Agent: Fixed MCP servers missing from new project threads after a worktree opens. (#62026) Agent: Fixed MCP extension configuration dialogs appearing in other workspaces. (#61882) Fixed undoing or redoing Project Panel operations trashing files with unsaved edits without confirmation. (#62294) Fixed a crash when a workspace was removed while a remote project was opening in the same window. (#62028) Fixed the bundled npm cache growing without bound, which could consume many gigabytes of disk. (#61750) Fixed string-form dev container lifecycle commands to execute through /bin/sh -c as required by the Dev Container specification. (#60792; thanks rabindra789) Fixed UI elements flickering on some Windows devices. (#62069) Fixed Zed windows sometimes not repainting after being uncovered on X11. (#61162; thanks mTvare6) Fixed Agent terminal commands hanging at a shell prompt after a syntax error. (#62078; thanks procr1337) Fixed a bug where archiving a thread switched the window to a different project or could crash while the window was closing. (#62141) Fixed a bug where the Settings UI would sometimes not show configured MCP servers. (#61928) Fixed a memory leak when previewing images that were repeatedly updated on disk. (#58803; thanks ronharel02) Fixed a noisy "Failed to authenticate provider: ChatGPT Subscription" error being logged on every startup for users who had not configured the ChatGPT Subscription provider. (#61949; thanks NewtonChutney) Fixed an extra window opening on macOS when launching Zed from the CLI with session restore enabled. (#61814; thanks RemcoSmitsDev) Fixed auto-indentation when inserting a line above in Vim mode. (#52594; thanks 143mailliw) Fixed File Finder offering to create a file instead of navigating to a line when the target file was already open. (#55875) Fixed Git submodules being registered under the parent repository's .git/modules directory instead of their own path. (#61859; thanks 007qr) Fixed inconsistent class instantiation highlighting in JavaScript, TypeScript, and TSX. (#61890; thanks IbrahimKhan12) Fixed incorrect arguments being passed to scp or sftp when uploading remote files. (#56080; thanks cocool97) Fixed incorrect bracket matching when syntax-error recovery omitted a delimiter. (#61604; thanks mTvare6) Fixed incorrect symbol kinds appearing in workspace symbol search. (#62458; thanks Huliiiiii) Fixed manually resized panels ignoring subsequent changes to their configured default width. (#61855; thanks JoeJoeflyn) Fixed opening projects from an existing remote connection to respect the default_open_behavior setting. (#61048; thanks aetosdios27) Fixed project and buffer searches returning incomplete results for regular expressions with assertions. (#62158) Fixed remote server installation failing in WSL when automount was disabled. (#57624; thanks tjmchenry) Fixed semantic token highlighting being applied unpredictably when multiple language servers provided tokens for the same range. (#61735; thanks DrewRidley) Fixed semantic token highlighting from other language servers disappearing after one server refreshed its semantic tokens. (#61795) Fixed terminal path hyperlinks resolving against the current working directory instead of the directory active when the line was printed. (#52454; thanks saberoueslati) Fixed terminal word selection around tree branch glyphs. (#62076; thanks macayu17) Fixed the Agent Panel's full-screen button not appearing active while full screen was enabled. (#62041; thanks interkelstar) Fixed the contact finder incorrectly inheriting the channel search query in the Collab Panel. (#61363) Fixed dragging local Windows files into a Zed window connected to a WSL remote. (#57146; thanks carbofish) Fixed worktrees being reported as entirely ignored when their repository's info/exclude named a parent directory. (#62325; thanks hferreiro)

Breaking Changes and Notices

Improved the robustness of the Copilot Chat provider by separating authentication for Copilot Chat and edit predictions. Existing users will need to reauthenticate with Copilot. (#60535)

原文入口

阅读原文(zed.dev)

原文将在新窗口打开。收录时间不是内容更新时间;正文、译文与解读的版权归原作者/来源所有,本站仅作个人阅读辅助并保留原文入口;页面时间均为北京时间。

作者/署名来自原文结构化字段(Atom/RSS/HTML meta/JSON-LD;GitHub release 显示的是发布者账号),未经模型补充。

了解来源批准与收录规则