Skip to content

Add PR comment on selection in Agents - #335957

Merged
Benjamin Christopher Simmonds (benibenj) merged 1 commit into
mainfrom
alexr00/proper-gull
Sep 16, 2026
Merged

Benjamin Christopher Simmonds (benibenj) merged 1 commit into
mainfrom
alexr00/proper-gull

Conversation

@alexr00

@alexr00 Alex Ross (alexr00) commented Sep 12, 2026

Copy link
Copy Markdown
Member

image.png

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Base-side selections can incorrectly produce right-side comments or fail after submission.

Get a fresh assessment by requesting another Copilot review.

Review tier: Balanced
Findings: 1 Medium severity

Open findings (1)
What changed in this PR

Adds selection-based GitHub PR comments to the Agents Window.

Changes:

  • Adds multiline PR review comment support.
  • Adds PR comment actions to the feedback widget.
  • Parses PR-content URIs and maps selected ranges to PR lines.
File Description
sessionGitHubInfo.test.ts Updates review-thread fixture.
githubModels.test.ts Tests multiline comment forwarding.
githubFetchers.test.ts Tests GitHub range payloads.
utils.ts Adds PR-content URI parsing.
types.ts Adds review-thread start lines.
githubPullRequestModel.ts Forwards comment range starts.
githubPRFetcher.ts Reads and posts multiline comments.
codeReviewService.test.ts Tests range mapping and PR resources.
codeReviewService.ts Resolves and creates range comments.
feedbackInputWidget.test.ts Tests additional dropdown actions.
feedbackInputWidget.ts Supports dynamic additional actions.
agentFeedbackEditorInputContribution.ts Exposes PR commenting from selections.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +315 to +316
const pullRequestContent = parsePRContentUri(resource);
if (pullRequestContent) {
@github-actions

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: a8f49160 Current: 57716fa2

Changed (1)

imageCarousel/imageCarousel/SingleSectionMiddleImage/Dark
Before After
before after

3 insignificant change(s) omitted (≤20 px, Δ≤2). See CI logs for details.

@benibenj
Benjamin Christopher Simmonds (benibenj) merged commit f80869a into main Sep 16, 2026
34 checks passed
@vs-code-engineering vs-code-engineering Bot added this to the 1.139.0 milestone Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants