1 instantiation of CodeFixCollection
Microsoft.CodeAnalysis.Features (1)
CodeFixes\Service\CodeFixService.cs (1)
803return new CodeFixCollection(
47 references to CodeFixCollection
Microsoft.CodeAnalysis.EditorFeatures (1)
Suggestions\SuggestedActionsSource.cs (1)
222var result = await state.Target.Owner._codeFixService.GetMostSevereFixAsync(
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (8)
CodeFixes\CodeFixServiceTests.cs (8)
59var unused = await fixService.GetMostSevereFixAsync( 213var fixCollection = Assert.Single(fixCollectionSet); 262private static Task<ImmutableArray<CodeFixCollection>> GetAddedFixesWithExceptionValidationAsync(CodeFixProvider codefix) 265private static async Task<ImmutableArray<CodeFixCollection>> GetAddedFixesAsync(CodeFixProvider codefix, DiagnosticAnalyzer diagnosticAnalyzer, bool exception = false, bool throwExceptionInFixerCreation = false) 304var unused = await tuple.codeFixService.GetMostSevereFixAsync( 727private static async Task<ImmutableArray<CodeFixCollection>> GetNuGetAndVsixCodeFixersCoreAsync( 871var logDocumentCodeFix = Assert.Single(logDocumentCodeFixes); 1079CodeFixCollection expectedFixCollection;
Microsoft.CodeAnalysis.Features (32)
CodeFixes\Service\CodeFixService.cs (16)
98public async Task<CodeFixCollection?> GetMostSevereFixAsync( 148var collection = await errorFixTask.ConfigureAwait(false) ?? 154async Task<CodeFixCollection?> GetFirstFixAsync( 161await foreach (var collection in StreamFixesAsync( 173public async IAsyncEnumerable<CodeFixCollection> StreamFixesAsync( 222await foreach (var collection in StreamFixesAsync( 242await foreach (var codeFixCollection in StreamConfigurationFixesAsync( 287public async Task<CodeFixCollection?> GetDocumentFixAllForIdInSpanAsync( 313using var resultDisposer = ArrayBuilder<CodeFixCollection>.GetInstance(out var result); 319await foreach (var collection in StreamFixesAsync( 347var fixCollection = await GetDocumentFixAllForIdInSpanAsync( 442private async IAsyncEnumerable<CodeFixCollection> StreamFixesAsync( 543var codeFixCollection = await TryGetFixesOrConfigurationsAsync( 705private async IAsyncEnumerable<CodeFixCollection> StreamConfigurationFixesAsync( 725var codeFixCollection = await TryGetFixesOrConfigurationsAsync( 740private async Task<CodeFixCollection?> TryGetFixesOrConfigurationsAsync<TCodeFixProvider>(
CodeFixes\Service\ICodeFixService.cs (6)
17IAsyncEnumerable<CodeFixCollection> StreamFixesAsync(TextDocument document, TextSpan textSpan, ICodeActionRequestPriorityProvider priorityProvider, CancellationToken cancellationToken); 24Task<CodeFixCollection?> GetMostSevereFixAsync(TextDocument document, TextSpan range, ICodeActionRequestPriorityProvider priorityProvider, CancellationToken cancellationToken); 26Task<CodeFixCollection?> GetDocumentFixAllForIdInSpanAsync(TextDocument document, TextSpan textSpan, string diagnosticId, DiagnosticSeverity severity, CancellationToken cancellationToken); 34public static IAsyncEnumerable<CodeFixCollection> StreamFixesAsync(this ICodeFixService service, TextDocument document, TextSpan range, CancellationToken cancellationToken) 37public static Task<ImmutableArray<CodeFixCollection>> GetFixesAsync(this ICodeFixService service, TextDocument document, TextSpan range, CancellationToken cancellationToken) 40public static Task<ImmutableArray<CodeFixCollection>> GetFixesAsync(this ICodeFixService service, TextDocument document, TextSpan textSpan, ICodeActionRequestPriorityProvider priorityProvider, CancellationToken cancellationToken)
Copilot\ICopilotChangeAnalysisService.cs (10)
252await ProducerConsumer<(CodeFixCollection collection, bool success, TimeSpan elapsedTime)>.RunParallelAsync( 283var intervalTree = new SimpleMutableIntervalTree<CodeFixCollection, CodeFixCollectionIntervalIntrospector>(new CodeFixCollectionIntervalIntrospector()); 303using var intersectingCollections = TemporaryArray<CodeFixCollection>.Empty; 304foreach (var codeFixCollection in intervalTree) 338Task<ImmutableArray<CodeFixCollection>> ComputeCodeFixCollectionsAsync() 340return ProducerConsumer<CodeFixCollection>.RunParallelAsync( 345await foreach (var codeFixCollection in @this._codeFixService.StreamFixesAsync( 366static string GetProviderName(CodeFixCollection codeFixCollection) 370private readonly struct CodeFixCollectionIntervalIntrospector : IIntervalIntrospector<CodeFixCollection> 372public TextSpan GetSpan(CodeFixCollection value)
Microsoft.CodeAnalysis.LanguageServer.Protocol (6)
Features\CodeCleanup\AbstractCodeCleanupService.cs (1)
190var fixCollection = await _codeFixService.GetDocumentFixAllForIdInSpanAsync(
Features\UnifiedSuggestions\UnifiedSuggestedActionsSource.cs (5)
68ImmutableArray<CodeFixCollection> fixCollections, 88ImmutableArray<CodeFixCollection> fixCollections, 93foreach (var fixCollection in fixCollections) 102CodeFixCollection fixCollection, 132CodeFixCollection fixCollection,