Skip to content

Fix duplicate C# JSON-RPC completion helper - #2735

Merged
stephentoub merged 1 commit into
mainfrom
stephentoub-investigate-runtime-allocation-failure
Sep 20, 2026
Merged

stephentoub merged 1 commit into
mainfrom
stephentoub-investigate-runtime-allocation-failure

Conversation

@stephentoub

Copy link
Copy Markdown
Collaborator

The live C# SDK build consumed by copilot-agent-runtime fails with CS0102 because two independently merged test changes added identical JsonRpcReflection.Completion properties.

Remove the redundant declaration while retaining the shared reflection helper used by both test sets.

Validation:

  • dotnet build dotnet\test\GitHub.Copilot.SDK.Test.csproj -p:CopilotSkipCliDownload=true

Generated by Copilot

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@stephentoub
stephentoub requested a review from a team as a code owner September 20, 2026 20:16
Copilot AI balanced review requested due to automatic review settings September 20, 2026 20:16

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

🟢 Approval recommended

The remaining property preserves all existing usages and resolves the duplicate-member compilation failure.

Review effort: Balanced
Findings: None

What changed in this PR

Removes the duplicate C# test helper property that caused CS0102 while preserving the existing reflection helper.

Changes:

  • Deletes the redundant JsonRpcReflection.Completion declaration.
File Description
dotnet/​test/​Unit/​JsonRpcTests.cs Removes the duplicate property definition.

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

@stephentoub
stephentoub merged commit c310b24 into main Sep 20, 2026
49 of 51 checks passed
@stephentoub
stephentoub deleted the stephentoub-investigate-runtime-allocation-failure branch September 20, 2026 20:32
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.

2 participants