vscode copilot的五月更新总结

转载词

vscode也是四处借鉴呀

正文

VS Code continues with weekly stable releases. This changelog covers releases v1.120 through v1.123, the releases we shipped throughout May and early June 2026.
VS Code 继续每周发布稳定版本。此发布说明涵盖了从 v1.120 到 v1.123 的发布版本,这些是我们于 2026 年 5 月和 6 月初发布的版本。

In May, we made the Agents window available in VS Code Stable as a preview, giving users an agent-first experience focused on completing tasks rather than editing code. We also improved support for remotely controlling longer-running, more complex agent sessions.
5 月份,我们将 Agents 窗口作为预览版提供给 VS Code 稳定版用户,让用户获得以代理为中心的体验,专注于完成任务而不是编辑代码。我们还改进了对远程控制长时间运行、更复杂代理会话的支持。

VS Code supports bring-your-own-key (BYOK) models, letting you use your own language model API keys. This month, we expanded BYOK to air-gapped environments and added controls to specify which models handle utility tasks like commit message generation.
VS Code 支持自带密钥(BYOK)模型,允许你使用自己的语言模型 API 密钥。本月,我们将 BYOK 扩展到隔离环境,并添加了控制功能,用于指定哪些模型处理提交信息生成等实用任务。

Agents window Agents 窗口

  • Agents window in Stable (preview): Work agent-first across multiple projects with a dedicated surface for faster navigation and change review.
    Stable (预览) 中的代理窗口:跨多个项目以代理为中心工作,提供专用界面以实现更快的导航和变更审查。
  • Remote agents (preview): Run sessions on remote machines over SSH or Dev Tunnels, with sessions continuing even when the client disconnects.
    远程代理(预览):通过 SSH 或 Dev Tunnels 在远程机器上运行会话,即使客户端断开连接,会话仍能继续。
  • Agent Host Protocol (AHP): Continued investment in an open protocol for synchronizing agent session state across multiple clients.
    代理主机协议(AHP):持续投资于一个开放协议,用于在多个客户端之间同步代理会话状态。
  • Session preferences persist in new sessions: New sessions keep your recent choices, including agent harness and isolation mode.
    会话偏好设置在新会话中持续:新会话将保留您最近的选项,包括代理 harness 和隔离模式。
  • Sessions and Git flow improvements: New sessions can pull base branch updates before the agent starts edits, the Agents window refreshes Git state automatically after commits, syncs, and related operations, and agents can trigger tasks on remote machines.
    会话和 Git 流程改进:新会话可以在代理开始编辑之前拉取基础分支的更新,代理窗口会在提交、同步和相关操作后自动刷新 Git 状态,并且代理可以在远程机器上触发任务。
  • Session sync: Chat sessions now sync automatically to your GitHub account, giving you a searchable history of your work across machines and workspaces.
    会话同步:聊天会话现在会自动同步到您的 GitHub 账户,让您可以在不同机器和工作区中搜索您的工作历史记录。
  • Chronicle: Use /chronicle commands to query past sessions, generate standup reports, and get personalized productivity tips.
    编年史:使用 /chronicle 命令查询过去的会话,生成站立报告,并获取个性化的生产力提示。
  • Multiple sessions side-by-side: Open more than one agent session at the same time in the Agents window. Drag, Alt-click, or use Open to the Side to compare or review work in parallel.
    并排显示多个会话:在代理窗口中同时打开多个代理会话。拖动、Alt 点击或使用“侧边打开”来并行比较或审查工作。
  • Retry network-dependent commands in sandbox: Terminal commands that require network access are automatically retried with broader network permissions, while keeping filesystem protections in place.
    在沙盒中重试依赖网络的命令:需要网络访问的终端命令将自动使用更广泛的网络权限进行重试,同时保持文件系统保护措施。

Language models and BYOK 语言模型和 BYOK

  • Air-gapped BYOK: Bring-your-own-key models can run in isolated environments without GitHub authentication.
    隔离环境 BYOK:自带密钥模型可以在没有 GitHub 认证的情况下在隔离环境中运行。
  • Custom Endpoint provider: Add endpoints compatible with chat completions, responses, or messages from one provider flow.
    自定义端点提供程序:添加与聊天补全、响应或来自一个提供程序流的消息兼容的端点。
  • Model picker by provider: Find and switch models more easily in multi-provider environments.
    提供商模型选择器:在多提供商环境中更轻松地查找和切换模型。
  • BYOK token visibility: The context window now reports real token usage for bring-your-own-key models.
    自带密钥令牌可见性:上下文窗口现在报告自带密钥模型的实际令牌使用情况。
  • Reasoning effort controls: Configure thinking effort directly from the model picker to balance quality, latency, and cost.
    推理努力控制:直接从模型选择器配置思考努力,以平衡质量、延迟和成本。
  • Configurable utility models: Choose which models handle titles, summaries, rename suggestions, commit messages, and intent detection.
    可配置的实用模型:选择哪些模型处理标题、摘要、重命名建议、提交消息和意图检测。

Terminal safety and efficiency终端安全与效率

  • Expanded terminal output compression: More verbose output patterns from tests, builds, linters, Docker, and package managers are compressed before reaching the model to optimize token usage and help reduce costs.
    扩展终端输出压缩:测试、构建、代码检查、Docker 和包管理器的更冗长的输出模式在到达模型之前被压缩,以优化令牌使用并帮助降低成本。
  • Command risk assessment (experimental): Terminal confirmations include AI-generated risk levels and short safety explanations.
    命令风险评估(实验性):终端确认包括 AI 生成的风险级别和简短的安全说明。
  • Sensitive prompts stay in terminal: Passwords, passphrases, PINs, and verification codes are entered directly in the terminal and are not shared with the LLM.
    敏感提示保留在终端中:密码、短语、PIN 码和验证码直接输入终端,不与 LLM 共享。
  • Better background command UX: There are now clearer running-state indicators in chat, plus automatic cleanup of completed background agent terminals to help save resources on your machine and keep things more manageable.
    改进的背景命令用户体验:聊天中现在有更清晰的运行状态指示器,并且自动清理完成的背景代理终端,以帮助节省您的设备资源并使事物更易于管理。
  • Agent-aware terminal commands: The VSCODE_AGENT environment variable lets CLIs adapt behavior for agent-initiated commands.
    代理感知终端命令: VSCODE_AGENT 环境变量允许 CLIs 针对代理发起的命令调整行为。

Also new 此外还有新功能

  • Integrated browser: Adds device emulation to test your website’s responsiveness. New screenshot options let you capture the viewport, a selected area, or the full page and attach any of them as chat context to help reproduce and explain UI issues. You can also save favorite pages for quick access alongside open tabs.
    集成浏览器:添加设备模拟功能以测试您网站的响应性。新的截图选项允许您捕获视口、选定区域或整个页面,并将它们中的任何一项作为聊天上下文附加,以帮助重现和解释 UI 问题。您还可以保存常用页面,以便在打开的标签页旁边快速访问。
  • HTML file preview: Preview local HTML files directly in the integrated browser without installing an extension. Right-click a file in the Explorer or editor tab and select Open in Integrated Browser.
    HTML 文件预览:直接在集成浏览器中预览本地 HTML 文件,无需安装扩展。在资源管理器或编辑器选项卡中右键单击文件,然后选择“在集成浏览器中打开”。
  • Search only in changed files: There’s a new search panel toggle that can scope results to locally modified, uncommitted files.
    仅搜索已更改的文件:有一个新的搜索面板切换按钮,可以将结果范围限定在本地已修改但尚未提交的文件。
  • Markdown preview improvements: Mermaid diagram rendering and YAML front matter display are now built in, without requiring separate extensions. You can also view Markdown diffs as rendered preview instead of raw source when opening files from Source Control.
    Markdown 预览功能改进:Mermaid 图表渲染和 YAML 前置内容显示现已内置,无需单独安装扩展。在从源代码库打开文件时,您也可以将 Markdown 差异作为渲染预览查看,而不是原始源代码。
  • Quick suggestions default tuning: Experience reduced noise when inline completions are available.
    快速建议默认调整:当行内补全可用时,体验减少噪音。
  • Issue reporter wizard: New issue filing flow with support for screenshots and video recordings.
    问题报告向导:支持截图和视频录制的新问题提交流程。
  • Accessibility and UX updates: Ongoing improvements across editor surfaces.
    无障碍性和用户体验更新:编辑器界面的持续改进。

Happy coding! 快乐编码!