2 instantiations of CodeFixCollection
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
Diagnostics\AbstractCrossLanguageUserDiagnosticTest.vb (1)
172
result.Add(Tuple.Create(diagnostic, New
CodeFixCollection
(
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\CodeFixes\CodeFixService.cs (1)
751
return new
CodeFixCollection
(
37 references to CodeFixCollection
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (4)
CodeFixes\CodeFixServiceTests.cs (4)
251
private static Task<ImmutableArray<
CodeFixCollection
>> GetAddedFixesWithExceptionValidationAsync(CodeFixProvider codefix)
254
private static async Task<ImmutableArray<
CodeFixCollection
>> GetAddedFixesAsync(CodeFixProvider codefix, DiagnosticAnalyzer diagnosticAnalyzer, bool exception = false, bool throwExceptionInFixerCreation = false)
683
private static async Task<ImmutableArray<
CodeFixCollection
>> GetNuGetAndVsixCodeFixersCoreAsync(
834
var
logDocumentCodeFix = Assert.Single(logDocumentCodeFixes);
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (3)
Diagnostics\AbstractCrossLanguageUserDiagnosticTest.vb (3)
126
Friend Async Function GetDiagnosticAndFixAsync(workspace As TestWorkspace) As Task(Of Tuple(Of Diagnostic,
CodeFixCollection
))
152
Private Async Function GetDiagnosticAndFixesAsync(workspace As TestWorkspace) As Task(Of IEnumerable(Of Tuple(Of Diagnostic,
CodeFixCollection
)))
159
Dim result = New List(Of Tuple(Of Diagnostic,
CodeFixCollection
))
Microsoft.CodeAnalysis.Features (2)
CodeFixes\FirstFixResult.cs (2)
12
public readonly
CodeFixCollection
? CodeFixCollection;
17
public FirstFixResult(bool upToDate,
CodeFixCollection
? codeFixCollection)
Microsoft.CodeAnalysis.LanguageServer.Protocol (28)
Features\CodeCleanup\AbstractCodeCleanupService.cs (1)
178
var
fixCollection = await _codeFixService.GetDocumentFixAllForIdInSpanAsync(
Features\CodeFixes\CodeFixService.cs (16)
135
var
collection = await errorFixTask.ConfigureAwait(false) ??
141
async Task<
CodeFixCollection
?> GetFirstFixAsync(
145
await foreach (
var
collection in StreamFixesAsync(
157
public async IAsyncEnumerable<
CodeFixCollection
> StreamFixesAsync(
197
await foreach (
var
collection in StreamFixesAsync(
218
await foreach (
var
codeFixCollection in StreamConfigurationFixesAsync(
251
public Task<
CodeFixCollection
?> GetDocumentFixAllForIdInSpanAsync(
255
public async Task<
CodeFixCollection
?> GetDocumentFixAllForIdInSpanAsync(
266
using var resultDisposer = ArrayBuilder<
CodeFixCollection
>.GetInstance(out var result);
272
await foreach (
var
collection in StreamFixesAsync(
304
var
fixCollection = await GetDocumentFixAllForIdInSpanAsync(
399
private async IAsyncEnumerable<
CodeFixCollection
> StreamFixesAsync(
484
var
codeFixCollection = await TryGetFixesOrConfigurationsAsync(
649
private async IAsyncEnumerable<
CodeFixCollection
> StreamConfigurationFixesAsync(
670
var
codeFixCollection = await TryGetFixesOrConfigurationsAsync(
686
private async Task<
CodeFixCollection
?> TryGetFixesOrConfigurationsAsync<TCodeFixProvider>(
Features\CodeFixes\ICodeFixService.cs (6)
19
IAsyncEnumerable<
CodeFixCollection
> StreamFixesAsync(TextDocument document, TextSpan textSpan, CodeActionRequestPriority priority, CodeActionOptionsProvider options, bool isBlocking, Func<string, IDisposable?> addOperationScope, CancellationToken cancellationToken);
28
Task<
CodeFixCollection
?> GetDocumentFixAllForIdInSpanAsync(TextDocument document, TextSpan textSpan, string diagnosticId, DiagnosticSeverity severity, CodeActionOptionsProvider fallbackOptions, CancellationToken cancellationToken);
36
public static IAsyncEnumerable<
CodeFixCollection
> StreamFixesAsync(this ICodeFixService service, TextDocument document, TextSpan range, CodeActionOptionsProvider fallbackOptions, bool isBlocking, CancellationToken cancellationToken)
39
public static Task<ImmutableArray<
CodeFixCollection
>> GetFixesAsync(this ICodeFixService service, TextDocument document, TextSpan range, CodeActionOptionsProvider fallbackOptions, bool isBlocking, CancellationToken cancellationToken)
42
public static Task<ImmutableArray<
CodeFixCollection
>> GetFixesAsync(this ICodeFixService service, TextDocument document, TextSpan textSpan, CodeActionRequestPriority priority, CodeActionOptionsProvider fallbackOptions, bool isBlocking, Func<string, IDisposable?> addOperationScope, CancellationToken cancellationToken)
45
public static Task<
CodeFixCollection
?> GetDocumentFixAllForIdInSpanAsync(this ICodeFixService service, TextDocument document, TextSpan range, string diagnosticId, CodeActionOptionsProvider fallbackOptions, CancellationToken cancellationToken)
Features\UnifiedSuggestions\UnifiedSuggestedActionsSource.cs (5)
72
ImmutableArray<
CodeFixCollection
> fixCollections,
92
ImmutableArray<
CodeFixCollection
> fixCollections,
97
foreach (
var
fixCollection in fixCollections)
106
CodeFixCollection
fixCollection,
136
CodeFixCollection
fixCollection,