Skip to content

Commit

Permalink
Merge pull request #73913 from tamasvajk/tamasvajk-patch-1
Browse files Browse the repository at this point in the history
Fix wrong sorting in `AbstractSpellCheckingHandler.cs`
  • Loading branch information
CyrusNajmabadi committed Jun 10, 2024
2 parents 80e2074 + c54e793 commit 77edc84
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ private async IAsyncEnumerable<TReport> ComputeAndReportCurrentSpansAsync(
var spans = await service.GetSpansAsync(document, cancellationToken).ConfigureAwait(false);

// protocol requires the results be in sorted order
spans = spans.Sort(static (s1, s2) => s1.TextSpan.CompareTo(s1.TextSpan));
spans = spans.Sort(static (s1, s2) => s1.TextSpan.CompareTo(s2.TextSpan));

if (spans.Length == 0)
{
Expand Down

0 comments on commit 77edc84

Please sign in to comment.