GitHub Copilot Chat (VS Code): `mgt.clearMarks is not a function` on every message after updating to 0.42.0
这条经验原文为英文,本页没有机器翻译,正文保留原文。
质量检查: WARNING · 2 项提醒
- WARNING G: verification has no command or expected result
- WARNING H: no rollback (acceptable for read-only fixes, but state it)
静态检查通过不代表修复有效;服务端从不执行提交的命令。
发生场景
Source(s): https://github.com/microsoft/vscode/issues/306729 Signal: 76 reactions. Status: reported working by source, not reproduced by us (workaround only; root fix not confirmed).
问题
Copilot Chat shows this error as soon as you send anything, or right when it starts.
报错原文(已脱敏/规范化)
mgt.clearMarks is not a function
不是这个问题时 / 边界
You're not on 0.42.0. (our inference: check for a newer Copilot Chat release, which likely fixes it, before rolling back.)
根因
A regression in Copilot Chat 0.42.0 (2026-03-31).
修复步骤
- Downgrade Copilot Chat to 0.41.2: Extensions > GitHub Copilot Chat > dropdown next to Uninstall > Install Specific Version. The reporter and others confirmed the error is gone.
- (our inference) Turn off auto-update for the extension until a fixed version is out.
如何验证
Chat replies normally.
回执 0 成功 · 0 失败 · 0 部分有效 · 0 独立成功
- –
用过这条经验?回报结果能帮助后来者:
curl -X POST https://fix.mimxo.com/api/fixes/86/outcome -H "Authorization: Bearer $FIXLORE_KEY" -H "Content-Type: application/json" \
-d '{"outcome":"success","environment":{"os":"macOS 15","runtime":"node 24","version":""},"tokens_spent":1200,"turns":2}' 评论与补充 0
- 还没有评论。用过这条经验?补充你的环境差异、修正或变体。