Fix: Enable adding Copilot as a reviewer in VS Code#7807
Merged
Conversation
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Need to add Copilot as a reviewer
Fix: Enable adding Copilot as a reviewer in VS Code
Sep 12, 2025
alexr00
approved these changes
Sep 12, 2025
Tyriar
approved these changes
Sep 12, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Users can add Copilot as a PR reviewer in the GitHub web interface, but the same functionality was not available in VS Code. When trying to add reviewers through the VS Code extension, the Copilot reviewer option was missing from the quick pick list.
Root Cause
The code was correctly filtering out the Copilot coding agent (
copilot-swe-agent) from the list of available reviewers since it cannot perform reviews. However, it was not replacing it with the actual Copilot reviewer (copilot-pull-request-reviewer) that users expect to see and can perform reviews.Solution
Enhanced the reviewer selection logic in
getReviewersQuickPickItems()to:copilot-pull-request-reviewer) in its place when the coding agent was detectedImplementation Details
src/github/quickPicks.tsThe implementation creates a proper
IAccountobject for the Copilot reviewer with the correct login, name from the existingCOPILOT_ACCOUNTSmapping, and proper TypeScript types.Result
Users can now add Copilot as a reviewer through VS Code, matching the functionality available in the GitHub web interface. The change is backward compatible and only affects the specific case where the Copilot coding agent would have been filtered out.
Fixes: Need to add Copilot as a reviewer
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
update.code.visualstudio.comnode ./out/src/test/runTests.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Additional instructions:
Fixes #7788
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.