1 instantiation of CodeFixCollection
Microsoft.CodeAnalysis.Features (1)
CodeFixes\Service\CodeFixService.cs (1)
807
return new
CodeFixCollection
(
48 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 (33)
CodeFixes\Service\CodeFixService.cs (17)
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 Task<
CodeFixCollection
?> GetDocumentFixAllForIdInSpanAsync(
291
public async Task<
CodeFixCollection
?> GetDocumentFixAllForIdInSpanAsync(
317
using var resultDisposer = ArrayBuilder<
CodeFixCollection
>.GetInstance(out var result);
323
await foreach (
var
collection in StreamFixesAsync(
351
var
fixCollection = await GetDocumentFixAllForIdInSpanAsync(
446
private async IAsyncEnumerable<
CodeFixCollection
> StreamFixesAsync(
547
var
codeFixCollection = await TryGetFixesOrConfigurationsAsync(
709
private async IAsyncEnumerable<
CodeFixCollection
> StreamConfigurationFixesAsync(
729
var
codeFixCollection = await TryGetFixesOrConfigurationsAsync(
744
private async Task<
CodeFixCollection
?> TryGetFixesOrConfigurationsAsync<TCodeFixProvider>(
CodeFixes\Service\ICodeFixService.cs (6)
18
IAsyncEnumerable<
CodeFixCollection
> StreamFixesAsync(TextDocument document, TextSpan textSpan, ICodeActionRequestPriorityProvider priorityProvider, CancellationToken cancellationToken);
25
Task<
CodeFixCollection
?> GetMostSevereFixAsync(TextDocument document, TextSpan range, ICodeActionRequestPriorityProvider priorityProvider, CancellationToken cancellationToken);
27
Task<
CodeFixCollection
?> GetDocumentFixAllForIdInSpanAsync(TextDocument document, TextSpan textSpan, string diagnosticId, DiagnosticSeverity severity, CancellationToken cancellationToken);
35
public static IAsyncEnumerable<
CodeFixCollection
> StreamFixesAsync(this ICodeFixService service, TextDocument document, TextSpan range, CancellationToken cancellationToken)
38
public static Task<ImmutableArray<
CodeFixCollection
>> GetFixesAsync(this ICodeFixService service, TextDocument document, TextSpan range, CancellationToken cancellationToken)
41
public static Task<ImmutableArray<
CodeFixCollection
>> GetFixesAsync(this ICodeFixService service, TextDocument document, TextSpan textSpan, ICodeActionRequestPriorityProvider priorityProvider, CancellationToken cancellationToken)
Copilot\ICopilotChangeAnalysisService.cs (10)
264
await ProducerConsumer<(
CodeFixCollection
collection, bool success, TimeSpan elapsedTime)>.RunParallelAsync(
295
var intervalTree = new SimpleMutableIntervalTree<
CodeFixCollection
, CodeFixCollectionIntervalIntrospector>(new CodeFixCollectionIntervalIntrospector());
315
using var intersectingCollections = TemporaryArray<
CodeFixCollection
>.Empty;
316
foreach (
var
codeFixCollection in intervalTree)
350
Task<ImmutableArray<
CodeFixCollection
>> ComputeCodeFixCollectionsAsync()
352
return ProducerConsumer<
CodeFixCollection
>.RunParallelAsync(
357
await foreach (
var
codeFixCollection in @this._codeFixService.StreamFixesAsync(
378
static string GetProviderName(
CodeFixCollection
codeFixCollection)
382
private readonly struct CodeFixCollectionIntervalIntrospector : IIntervalIntrospector<
CodeFixCollection
>
384
public TextSpan GetSpan(
CodeFixCollection
value)
Microsoft.CodeAnalysis.LanguageServer.Protocol (6)
Features\CodeCleanup\AbstractCodeCleanupService.cs (1)
174
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,