1 instantiation of CodeFixCollection
Microsoft.CodeAnalysis.Features (1)
CodeFixes\Service\CodeFixService.cs (1)
813
return new
CodeFixCollection
(
31 references to CodeFixCollection
Microsoft.CodeAnalysis.Features (31)
CodeFixes\Service\CodeFixService.cs (15)
94
public async Task<
CodeFixCollection
?> GetMostSevereFixAsync(
141
var
collection = await errorFixTask.ConfigureAwait(false) ??
147
async Task<
CodeFixCollection
?> GetFirstFixAsync(
154
await foreach (
var
collection in StreamFixesAsync(
166
public async IAsyncEnumerable<
CodeFixCollection
> StreamFixesAsync(
212
await foreach (
var
collection in StreamFixesAsync(
232
await foreach (
var
codeFixCollection in StreamConfigurationFixesAsync(
265
public async Task<
CodeFixCollection
?> GetDocumentFixAllForIdInSpanAsync(
302
await foreach (
var
collection in StreamFixesAsync(
326
var
fixCollection = await GetDocumentFixAllForIdInSpanAsync(
416
private async IAsyncEnumerable<
CodeFixCollection
> StreamFixesAsync(
520
var
codeFixCollection = await TryGetFixesOrConfigurationsAsync(
717
private async IAsyncEnumerable<
CodeFixCollection
> StreamConfigurationFixesAsync(
737
var
codeFixCollection = await TryGetFixesOrConfigurationsAsync(
752
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(Document 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)