Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/Features/Core/Portable/NavigateTo/NavigateToSearcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ async ValueTask SearchCoreAsync(IGrouping<INavigateToSearchService, Project> gro
await processProjectAsync(
searchService,
[.. grouping],
results =>
async results =>
{
using var _ = ArrayBuilder<INavigateToSearchResult>.GetInstance(results.Length, out var nonDuplicates);

Expand All @@ -401,9 +401,10 @@ await processProjectAsync(
}

if (nonDuplicates.Count > 0)
_callback.AddResultsAsync(nonDuplicates.ToImmutableAndClear(), _activeDocument, cancellationToken);

return Task.CompletedTask;
{
await _callback.AddResultsAsync(
nonDuplicates.ToImmutableAndClear(), _activeDocument, cancellationToken).ConfigureAwait(false);
}
},
() => this.ProgressItemsCompletedAsync(count: 1, cancellationToken)).ConfigureAwait(false);
}
Expand Down
Loading