You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

VS2022 17.7.4中GitHub Copilot可用但Copilot Chat无法使用求助

解决Visual Studio 2022中GitHub Copilot Chat无法使用的问题

问题概述

使用Microsoft Visual Studio Professional 2022(64位)17.7.4版本,GitHub Copilot可正常登录并使用,但Copilot Chat功能无法正常工作,报错日志如下:

[Conversations Information] [CopilotClient] Need to get an auth token.
[Conversations Error] [CopilotClient] Copilot token request failed:
StreamJsonRpc.RemoteMethodNotFoundException: No method by the name '$/invokeProxy/1/GetEditorVersionAsync' is found.
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject)
   at Microsoft.VisualStudio.Conversations.CopilotClient.CopilotAuthTokenManager.GetTokenAsync(CancellationToken cancellationToken, TelemetryScope`1 scope)
   in D:\a\_work\1\s\CopilotClient\CopilotAuthTokenManager.cs:line 241

同时VS视图菜单中找不到GitHub Copilot入口,已尝试卸载扩展、重新登录账号但无效。

解决方案

  • 更新Visual Studio到最新版本
    17.7.4版本存在Copilot Chat与VS核心组件的兼容性问题,通过VS顶部菜单「帮助」→「检查更新」升级到最新稳定版,新版本会修复这类RPC调用的适配bug。

  • 彻底清理Copilot扩展残留

    1. 关闭所有Visual Studio实例
    2. 导航到扩展缓存目录:%LOCALAPPDATA%\Microsoft\VisualStudio\<你的VS版本标识>\Extensions(例如对应17.7.4的目录格式为17.0_xxxxxxxx),删除所有含「Copilot」或「GitHub」的文件夹
    3. 导航到%APPDATA%\GitHub Copilot,删除该目录下所有文件
    4. 重启VS,重新安装GitHub Copilot扩展
  • 重置Visual Studio用户设置
    通过「工具」→「导入和导出设置」→「重置所有设置」执行设置重置(可选择保存当前设置备份),解决因配置异常导致的扩展加载故障。

  • 确认扩展安装完整性
    在「扩展」→「管理扩展」中搜索「GitHub Copilot」,确保安装的是包含Copilot Chat功能的完整扩展包(扩展描述会明确提及Chat功能),若为仅代码补全的旧版扩展,卸载后重新安装最新完整版本。

  • 检查VS组件安装

    1. 运行Visual Studio Installer,选择「修改」当前VS安装
    2. 在「单个组件」中搜索「GitHub Copilot」,确认该组件已勾选,未勾选则添加并完成安装

内容的提问来源于stack exchange,提问作者engfpe

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.09 21:53:11