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

VSCode中Gemini Code Assistant加载失败及登录问题求助

解决Gemini Code Assistant在VSCode Insiders中失效的问题

问题概述

Gemini Code Assistant无法提供代码建议,点击启动按钮能弹出聊天窗口但输入无响应,Tasks输出中出现错误:

mainThreadExtensionService.ts:81 [googlecloudtools.cloudcode]The "this" argument must be an instance of Performance. Received [Object]

已尝试重启、更新/重装扩展、更新Node.js,仍无法完成Google Cloud登录,问题持续存在。运行环境:Windows 11,VSCode Insiders 1.90.0-insider。

可行解决办法

  • 降级Cloud Code扩展至稳定版本
    错误来自googlecloudtools.cloudcode扩展,推测是该扩展最新版与VSCode Insiders存在兼容性冲突。操作步骤:

    1. 打开VSCode扩展市场,找到Cloud Code扩展
    2. 点击扩展卡片右下角的管理按钮(齿轮图标),选择安装另一个版本
    3. 在版本列表中选择一个发布时间更早的稳定版本(如2.26.0及之前版本),安装后重启VSCode
  • 禁用VSCode实验性Performance API设置
    部分实验性设置可能导致Performance API调用异常:

    1. 按下Ctrl+,打开设置面板
    2. 在搜索框输入performance,查找包含experimental或Performance API相关的设置项
    3. 禁用对应设置后重启VSCode
  • 清理Cloud Code扩展缓存
    残留缓存可能导致异常:

    1. 关闭VSCode Insiders
    2. 打开文件资源管理器,导航到%USERPROFILE%\.vscode-insiders\extensions
    3. 删除所有以googlecloudtools.cloudcode开头的文件夹
    4. 重新安装降级后的Cloud Code扩展,重启VSCode
  • 切换至VSCode稳定版
    VSCode Insiders为测试版本,兼容性问题较多。若上述方法无效,暂时切换到VSCode稳定版本,再使用Gemini Code Assistant。

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.24 00:24:55