Skip to content

Commit 567599f

Browse files
Properly pass progress object along in fix all provider (#77243)
2 parents 9af27d3 + 5d046a0 commit 567599f

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/Features/CSharp/Portable/CodeRefactorings/EnableNullable/EnableNullableCodeRefactoringProvider.FixAllProvider.cs

+3-6
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,11 @@ private sealed class FixAllCodeAction(Func<CodeActionPurpose, IProgress<CodeAnal
6161
{
6262
private readonly Func<CodeActionPurpose, IProgress<CodeAnalysisProgress>, CancellationToken, Task<Solution>> _createChangedSolution = createChangedSolution;
6363

64-
protected override async Task<IEnumerable<CodeActionOperation>> ComputePreviewOperationsAsync(CancellationToken cancellationToken)
64+
protected override async Task<ImmutableArray<CodeActionOperation>> ComputeOperationsAsync(IProgress<CodeAnalysisProgress> progress, CancellationToken cancellationToken)
6565
{
6666
var changedSolution = await _createChangedSolution(
67-
CodeActionPurpose.Preview, CodeAnalysisProgress.None, cancellationToken).ConfigureAwait(false);
68-
if (changedSolution is null)
69-
return [];
70-
71-
return new CodeActionOperation[] { new ApplyChangesOperation(changedSolution) };
67+
CodeActionPurpose.Preview, progress, cancellationToken).ConfigureAwait(false);
68+
return changedSolution is null ? [] : [new ApplyChangesOperation(changedSolution)];
7269
}
7370
}
7471
}

0 commit comments

Comments
 (0)