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