vscode-pull-request-github: Unable to Add Comments in PR using GitHub Pull Requests Extension in VSCode
I’m using the GitHub Pull Requests extension in Visual Studio Code to review pull requests. I’ve been assigned a PR, and I partially reviewed it about a week ago. However, today, when I tried to continue my review, I ran into an issue. Specifically, I can’t add comments near the lines in the PR - The +
button at the start of each line is just greyed out.
Also, whenever I try to click the “Add File Comment” button, I receive the following message: The cursor must be within a commenting range to add a comment.
I was able to comment just fine a week ago, so I’m puzzled about what might have changed or what I might be doing wrong. I tried the following:
- restarted the vs code and restarted my system
- uninstalled and reinstalled the extension
- Signed out of my GitHub account and signed in again
Has anyone else experienced this issue or have any suggestions on how to resolve it?
This is the output of Help: About
:
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
I’m currently using version 0.74.0 of the extension GitHub Pull Requests and Issues in VS Code.
Any help is appreciated.
About this issue
- Original URL
- State: closed
- Created 9 months ago
- Comments: 22 (13 by maintainers)
Commits related to this issue
- Use unique ID for PR comments controllers Fixes #5317 — committed to microsoft/vscode-pull-request-github by alexr00 8 months ago
- Use unique title to work around issue in VS Code Fixes #5317 — committed to microsoft/vscode-pull-request-github by alexr00 8 months ago
- Use the ID, not the label for unique comment controller ID Part of microsoft/vscode-pull-request-github#5317 — committed to microsoft/vscode by alexr00 8 months ago
- Use unique title to work around issue in VS Code (#5370) Fixes #5317 — committed to microsoft/vscode-pull-request-github by alexr00 8 months ago
- Use the ID, not the label for unique comment controller ID (#195989) Part of microsoft/vscode-pull-request-github#5317 — committed to microsoft/vscode by alexr00 8 months ago
- Use the ID, not the label for unique comment controller ID (#195989) Part of microsoft/vscode-pull-request-github#5317 — committed to Alex0007/vscode by alexr00 8 months ago
- Use unique ID and title for PR comments controllers (#5369) * Use unique ID for PR comments controllers Fixes #5317 * Also use unique title to fix immediately — committed to ger1964jou/vscode-pull-request-github by alexr00 8 months ago
For what it’s worth @alexr00 this may a be different issue. The extension works as expected for me using the following:
Version: 1.84.2 (system setup) Commit: 1a5daa3a0231a0fbba4f14db7ec463cf99d7768e Date: 2023-11-09T10:51:52.184Z Electron: 25.9.2 ElectronBuildId: 24603566 Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 OS: Windows_NT x64 10.0.19045
Ext Version: v0.76.1
Hey @alexr00 I have tested the pre release extension with both the stable & Insiders version of VS Code, and comments now work as expected for me 😃
Let me know if there anything else, you would like me to test.
Cheers
J