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

VSCode中GitHub Pull Requests扩展无法添加PR评论求助

无法在VSCode的GitHub Pull Requests扩展中添加PR代码行评论

问题详情

我正在使用VSCode的GitHub Pull Requests扩展审核Pull Request(PR),一周前已完成分配给我的PR的部分审核,但今日继续审核时遇到问题:无法在PR的代码行附近添加评论,+按钮呈灰色不可用状态。
灰色+按钮

此外,点击「Add File Comment」按钮时,会收到报错提示:

The cursor must be within a commenting range to add a comment.(光标必须位于可评论范围内才能添加评论)
报错截图

已尝试的无效操作

  • 重启VSCode及电脑
  • 卸载并重新安装该扩展
  • 退出并重新登录GitHub账号

环境信息

VSCode版本

Version: 1.83.0 (user setup)
Commit: e7e037083ff4455cf320e344325dacb480062c3c
Date: 2023-10-03T16:12:16.321Z
Electron: 25.8.4
ElectronBuildId: 24154031
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.22621

扩展版本

GitHub Pull Requests and Issues 0.74.0

求助

请问是否有其他人遇到过此问题,或有解决建议?


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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.07.09 12:42:39