1 instantiation of CodeFixCollection
Microsoft.CodeAnalysis.Features (1)
CodeFixes\Service\CodeFixService.cs (1)
803
return new
CodeFixCollection
(
47 references to CodeFixCollection
Microsoft.CodeAnalysis.EditorFeatures (1)
Suggestions\SuggestedActionsSource.cs (1)
222
var
result = await state.Target.Owner._codeFixService.GetMostSevereFixAsync(
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (8)
CodeFixes\CodeFixServiceTests.cs (8)
59
var
unused = await fixService.GetMostSevereFixAsync(
213
var
fixCollection = Assert.Single(fixCollectionSet);
262
private static Task<ImmutableArray<
CodeFixCollection
>> GetAddedFixesWithExceptionValidationAsync(CodeFixProvider codefix)
265
private static async Task<ImmutableArray<
CodeFixCollection
>> GetAddedFixesAsync(CodeFixProvider codefix, DiagnosticAnalyzer diagnosticAnalyzer, bool exception = false, bool throwExceptionInFixerCreation = false)
304
var
unused = await tuple.codeFixService.GetMostSevereFixAsync(
727
private static async Task<ImmutableArray<
CodeFixCollection
>> GetNuGetAndVsixCodeFixersCoreAsync(
871
var
logDocumentCodeFix = Assert.Single(logDocumentCodeFixes);
1079
CodeFixCollection
expectedFixCollection;
Microsoft.CodeAnalysis.Features (32)
CodeFixes\Service\CodeFixService.cs (16)
98
public async Task<
CodeFixCollection
?> GetMostSevereFixAsync(
148
var
collection = await errorFixTask.ConfigureAwait(false) ??
154
async Task<
CodeFixCollection
?> GetFirstFixAsync(
161
await foreach (
var
collection in StreamFixesAsync(
173
public async IAsyncEnumerable<
CodeFixCollection
> StreamFixesAsync(
222
await foreach (
var
collection in StreamFixesAsync(
242
await foreach (
var
codeFixCollection in StreamConfigurationFixesAsync(
287
public async Task<
CodeFixCollection
?> GetDocumentFixAllForIdInSpanAsync(
313
using var resultDisposer = ArrayBuilder<
CodeFixCollection
>.GetInstance(out var result);
319
await foreach (
var
collection in StreamFixesAsync(
347
var
fixCollection = await GetDocumentFixAllForIdInSpanAsync(
442
private async IAsyncEnumerable<
CodeFixCollection
> StreamFixesAsync(
543
var
codeFixCollection = await TryGetFixesOrConfigurationsAsync(
705
private async IAsyncEnumerable<
CodeFixCollection
> StreamConfigurationFixesAsync(
725
var
codeFixCollection = await TryGetFixesOrConfigurationsAsync(
740
private async Task<
CodeFixCollection
?> TryGetFixesOrConfigurationsAsync<TCodeFixProvider>(
CodeFixes\Service\ICodeFixService.cs (6)
17
IAsyncEnumerable<
CodeFixCollection
> StreamFixesAsync(TextDocument document, TextSpan textSpan, ICodeActionRequestPriorityProvider priorityProvider, CancellationToken cancellationToken);
24
Task<
CodeFixCollection
?> GetMostSevereFixAsync(TextDocument document, TextSpan range, ICodeActionRequestPriorityProvider priorityProvider, 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, ICodeActionRequestPriorityProvider priorityProvider, 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\UnifiedSuggestions\UnifiedSuggestedActionsSource.cs (5)
68
ImmutableArray<
CodeFixCollection
> fixCollections,
88
ImmutableArray<
CodeFixCollection
> fixCollections,
93
foreach (
var
fixCollection in fixCollections)
102
CodeFixCollection
fixCollection,
132
CodeFixCollection
fixCollection,