Skip to content

Commit abd2b1c

Browse files
authored
Merge pull request #2401 from sharwell/propagate-cancellation
Propagate CancellationToken in FixAllContextHelper.GetAllDiagnosticsAsync
2 parents 0043337 + a7bb662 commit abd2b1c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

StyleCop.Analyzers/StyleCop.Analyzers.CodeFixes/Helpers/FixAllContextHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public static async Task<ImmutableDictionary<Project, ImmutableArray<Diagnostic>
106106

107107
public static async Task<ImmutableArray<Diagnostic>> GetAllDiagnosticsAsync(Compilation compilation, CompilationWithAnalyzers compilationWithAnalyzers, ImmutableArray<DiagnosticAnalyzer> analyzers, IEnumerable<Document> documents, bool includeCompilerDiagnostics, CancellationToken cancellationToken)
108108
{
109-
return await compilationWithAnalyzers.GetAllDiagnosticsAsync().ConfigureAwait(false);
109+
return await compilationWithAnalyzers.GetAllDiagnosticsAsync(cancellationToken).ConfigureAwait(false);
110110
}
111111

112112
/// <summary>

0 commit comments

Comments
 (0)