1 instantiation of CodeFixCollection
Microsoft.CodeAnalysis.Features (1)
CodeFixes\Service\CodeFixService.cs (1)
833
return new
CodeFixCollection
(
47 references to CodeFixCollection
Microsoft.CodeAnalysis.EditorFeatures (1)
Suggestions\SuggestedActionsSource.cs (1)
219
var
result = await state.Target.Owner._codeFixService.GetMostSevereFixAsync(
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (8)
CodeFixes\CodeFixServiceTests.cs (8)
60
var
unused = await fixService.GetMostSevereFixAsync(
214
var
fixCollection = Assert.Single(fixCollectionSet);
263
private static Task<ImmutableArray<
CodeFixCollection
>> GetAddedFixesWithExceptionValidationAsync(CodeFixProvider codefix)
266
private static async Task<ImmutableArray<
CodeFixCollection
>> GetAddedFixesAsync(CodeFixProvider codefix, DiagnosticAnalyzer diagnosticAnalyzer, bool exception = false, bool throwExceptionInFixerCreation = false)
305
var
unused = await tuple.codeFixService.GetMostSevereFixAsync(
728
private static async Task<ImmutableArray<
CodeFixCollection
>> GetNuGetAndVsixCodeFixersCoreAsync(
872
var
logDocumentCodeFix = Assert.Single(logDocumentCodeFixes);
1080
CodeFixCollection
expectedFixCollection;
Microsoft.CodeAnalysis.Features (32)
CodeFixes\Service\CodeFixService.cs (16)
93
public async Task<
CodeFixCollection
?> GetMostSevereFixAsync(
143
var
collection = await errorFixTask.ConfigureAwait(false) ??
149
async Task<
CodeFixCollection
?> GetFirstFixAsync(
156
await foreach (
var
collection in StreamFixesAsync(
168
public async IAsyncEnumerable<
CodeFixCollection
> StreamFixesAsync(
217
await foreach (
var
collection in StreamFixesAsync(
237
await foreach (
var
codeFixCollection in StreamConfigurationFixesAsync(
282
public async Task<
CodeFixCollection
?> GetDocumentFixAllForIdInSpanAsync(
308
using var resultDisposer = ArrayBuilder<
CodeFixCollection
>.GetInstance(out var result);
314
await foreach (
var
collection in StreamFixesAsync(
342
var
fixCollection = await GetDocumentFixAllForIdInSpanAsync(
437
private async IAsyncEnumerable<
CodeFixCollection
> StreamFixesAsync(
540
var
codeFixCollection = await TryGetFixesOrConfigurationsAsync(
737
private async IAsyncEnumerable<
CodeFixCollection
> StreamConfigurationFixesAsync(
757
var
codeFixCollection = await TryGetFixesOrConfigurationsAsync(
772
private async Task<
CodeFixCollection
?> TryGetFixesOrConfigurationsAsync<TCodeFixProvider>(
CodeFixes\Service\ICodeFixService.cs (6)
17
IAsyncEnumerable<
CodeFixCollection
> StreamFixesAsync(TextDocument document, TextSpan textSpan, CodeActionRequestPriority? priority, CancellationToken cancellationToken);
24
Task<
CodeFixCollection
?> GetMostSevereFixAsync(TextDocument document, TextSpan range, CodeActionRequestPriority? priority, CancellationToken cancellationToken);
26
Task<
CodeFixCollection
?> GetDocumentFixAllForIdInSpanAsync(TextDocument document, TextSpan textSpan, string diagnosticId, DiagnosticSeverity severity, CancellationToken cancellationToken);
34
public static IAsyncEnumerable<
CodeFixCollection
> StreamFixesAsync(this ICodeFixService service, TextDocument document, TextSpan range, CancellationToken cancellationToken)
37
public static Task<ImmutableArray<
CodeFixCollection
>> GetFixesAsync(this ICodeFixService service, TextDocument document, TextSpan range, CancellationToken cancellationToken)
40
public static Task<ImmutableArray<
CodeFixCollection
>> GetFixesAsync(this ICodeFixService service, TextDocument document, TextSpan textSpan, CodeActionRequestPriority? priority, CancellationToken cancellationToken)
Copilot\ICopilotChangeAnalysisService.cs (10)
252
await ProducerConsumer<(
CodeFixCollection
collection, bool success, TimeSpan elapsedTime)>.RunParallelAsync(
283
var intervalTree = new SimpleMutableIntervalTree<
CodeFixCollection
, CodeFixCollectionIntervalIntrospector>(new CodeFixCollectionIntervalIntrospector());
303
using var intersectingCollections = TemporaryArray<
CodeFixCollection
>.Empty;
304
foreach (
var
codeFixCollection in intervalTree)
338
Task<ImmutableArray<
CodeFixCollection
>> ComputeCodeFixCollectionsAsync()
340
return ProducerConsumer<
CodeFixCollection
>.RunParallelAsync(
345
await foreach (
var
codeFixCollection in @this._codeFixService.StreamFixesAsync(
366
static string GetProviderName(
CodeFixCollection
codeFixCollection)
370
private readonly struct CodeFixCollectionIntervalIntrospector : IIntervalIntrospector<
CodeFixCollection
>
372
public TextSpan GetSpan(
CodeFixCollection
value)
Microsoft.CodeAnalysis.LanguageServer.Protocol (6)
Features\CodeCleanup\AbstractCodeCleanupService.cs (1)
190
var
fixCollection = await _codeFixService.GetDocumentFixAllForIdInSpanAsync(
Features\Suggestions\UnifiedSuggestedActionsSource.cs (5)
66
ImmutableArray<
CodeFixCollection
> fixCollections,
85
ImmutableArray<
CodeFixCollection
> fixCollections,
90
foreach (
var
fixCollection in fixCollections)
98
CodeFixCollection
fixCollection,
125
CodeFixCollection
fixCollection,