diff --git a/src/EditorFeatures/Core/Copilot/RoslynProposalAdjusterProvider.cs b/src/EditorFeatures/Core/Copilot/RoslynProposalAdjusterProvider.cs index cb45ba38f3286..933b0e6de0bbf 100644 --- a/src/EditorFeatures/Core/Copilot/RoslynProposalAdjusterProvider.cs +++ b/src/EditorFeatures/Core/Copilot/RoslynProposalAdjusterProvider.cs @@ -238,7 +238,7 @@ bool ReportFailureTelemetry(Exception ex) // those changes in. Note: we should generally always be producing edits that are safe to merge in. However, // as we do not control this code, we cannot guarantee this. Telemetry will let us know how often this happens // and if there's something we need to look into. - var result = Proposal.TryCreateProposal(proposal, finalEdits); + var result = Proposal.TryCreateProposal(proposal, finalEdits.ToArray()); // Copy edits as TryCreateProposal doesn't deep copy if (result is null) return default;