91 references to CodeActionRequestPriority
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (2)
65protected override CodeActionRequestPriority ComputeRequestPriority() 66=> CodeActionRequestPriority.High;
src\Analyzers\Core\CodeFixes\Formatting\FormattingCodeFixProvider.cs (2)
38protected override CodeActionRequestPriority ComputeRequestPriority() 39=> CodeActionRequestPriority.High;
Microsoft.CodeAnalysis.CSharp.Features (2)
Copilot\CSharpCopilotCodeFixProvider.cs (2)
44protected sealed override CodeActionRequestPriority ComputeRequestPriority() => CodeActionRequestPriority.Low;
Microsoft.CodeAnalysis.EditorFeatures (2)
RenameTracking\RenameTrackingCodeRefactoringProvider.cs (2)
53protected override CodeActionRequestPriority ComputeRequestPriority() 54=> CodeActionRequestPriority.High;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (6)
CodeFixes\CodeFixServiceTests.cs (6)
144priorityProvider: new DefaultCodeActionRequestPriorityProvider(CodeActionRequestPriority.Default), 151priorityProvider: new DefaultCodeActionRequestPriorityProvider(CodeActionRequestPriority.Lowest), 180priorityProvider: new DefaultCodeActionRequestPriorityProvider(CodeActionRequestPriority.Default), 210priorityProvider: new DefaultCodeActionRequestPriorityProvider(CodeActionRequestPriority.Default), 1086var priorityProvider = new SuggestedActionPriorityProvider(CodeActionRequestPriority.Default, lowPriorityAnalyzerData); 1088priorityProvider = new SuggestedActionPriorityProvider(CodeActionRequestPriority.Low, lowPriorityAnalyzerData);
Microsoft.CodeAnalysis.EditorFeatures.Wpf (14)
Suggestions\SuggestedActionPriorityProvider.cs (2)
18CodeActionRequestPriority priority, 22public CodeActionRequestPriority? Priority { get; } = priority;
Suggestions\SuggestedActionsSource_Async.cs (7)
106using var _ = PooledDictionary<CodeActionRequestPriority, ArrayBuilder<SuggestedActionSet>>.GetInstance(out var pendingActionSets); 121if (TryGetPriority(collector.Priority) is CodeActionRequestPriority priority) 137SuggestedActionSetPriority.None => CodeActionRequestPriority.Lowest, 138SuggestedActionSetPriority.Low => CodeActionRequestPriority.Low, 139SuggestedActionSetPriority.Medium => CodeActionRequestPriority.Default, 140SuggestedActionSetPriority.High => CodeActionRequestPriority.High, 266if (priorityProvider.Priority == CodeActionRequestPriority.Lowest)
Suggestions\SuggestedActionsSourceProvider.cs (5)
100private static CodeActionRequestPriority? TryGetPriority(string priority) 103DefaultOrderings.Highest => CodeActionRequestPriority.High, 104DefaultOrderings.Default => CodeActionRequestPriority.Default, 105DefaultOrderings.Low => CodeActionRequestPriority.Low, 106DefaultOrderings.Lowest => CodeActionRequestPriority.Lowest,
Microsoft.CodeAnalysis.Features (21)
AddImport\AbstractAddImportCodeFixProvider.cs (2)
41protected override CodeActionRequestPriority ComputeRequestPriority() 42=> CodeActionRequestPriority.High;
CodeFixesAndRefactorings\CodeActionRequestPriorityProvider.cs (11)
17CodeActionRequestPriority? Priority { get; } 21/// <see cref="CodeActionRequestPriority.Low"/> bucket. 52if (priority == CodeActionRequestPriority.Lowest) 62if (priority == CodeActionRequestPriority.Low && 71var analyzerPriority = analyzer is IBuiltInAnalyzer { IsHighPriority: true } 72? CodeActionRequestPriority.High 73: CodeActionRequestPriority.Default; 95if (provider.Priority == CodeActionRequestPriority.Low 97&& codeFixProvider.RequestPriority > CodeActionRequestPriority.Low) 113internal sealed class DefaultCodeActionRequestPriorityProvider(CodeActionRequestPriority? priority = null) : ICodeActionRequestPriorityProvider 119public CodeActionRequestPriority? Priority { get; } = priority;
CodeRefactorings\CodeRefactoringService.cs (1)
152CodeActionRequestPriority? priority,
CodeRefactorings\ICodeRefactoringService.cs (1)
17Task<ImmutableArray<CodeRefactoring>> GetRefactoringsAsync(TextDocument document, TextSpan textSpan, CodeActionRequestPriority? priority, CancellationToken cancellationToken);
ConvertNumericLiteral\AbstractConvertNumericLiteralCodeRefactoringProvider.cs (2)
30protected override CodeActionRequestPriority ComputeRequestPriority() 31=> CodeActionRequestPriority.Low;
src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (2)
65protected override CodeActionRequestPriority ComputeRequestPriority() 66=> CodeActionRequestPriority.High;
src\Analyzers\Core\CodeFixes\Formatting\FormattingCodeFixProvider.cs (2)
38protected override CodeActionRequestPriority ComputeRequestPriority() 39=> CodeActionRequestPriority.High;
Microsoft.CodeAnalysis.LanguageServer.Protocol (8)
Features\CodeFixes\CodeFixService.cs (6)
86if (!(priorityProvider.Priority is CodeActionRequestPriority.Default or CodeActionRequestPriority.Low)) 179var includeSuppressionFixes = priorityProvider.Priority is null or CodeActionRequestPriority.Lowest; 213if (priorityProvider.Priority != CodeActionRequestPriority.Lowest) 247CodeActionRequestPriority? priority, 250if (priority is null or CodeActionRequestPriority.Low)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer_GetDiagnosticsForSpan.cs (1)
429_priorityProvider.Priority != CodeActionRequestPriority.Default)
Features\UnifiedSuggestions\UnifiedSuggestedActionsSource.cs (1)
438CodeActionRequestPriority? priority,
Microsoft.CodeAnalysis.Workspaces (34)
CodeActions\CodeActionRequestPriority.cs (10)
56/// present in <see cref="CodeActionRequestPriority"/>. 58public static CodeActionRequestPriority Clamp(this CodeActionRequestPriority priority, ImmutableArray<string> customTags) 63if (priority < CodeActionRequestPriority.Low) 64priority = CodeActionRequestPriority.Low; 66if (priority > CodeActionRequestPriority.High) 67priority = CodeActionRequestPriority.High; 69if (priority == CodeActionRequestPriority.High && !customTags.Contains(CodeAction.CanBeHighPriorityTag)) 70priority = CodeActionRequestPriority.Default; 75public static int GetPriorityInt(this CodeActionRequestPriority? priority)
CodeFixes\CodeFixProvider.cs (12)
43/// Computes the <see cref="CodeActionRequestPriority"/> group this provider should be considered to run at. Legal values 44/// this can be must be between <see cref="CodeActionRequestPriority.Low"/> and <see cref="CodeActionPriority.High"/>. 48/// cref="CodeActionRequestPriority.High"/> may be downgraded to <see cref="CodeActionRequestPriority.Default"/> as they 51protected virtual CodeActionRequestPriority ComputeRequestPriority() 52=> CodeActionRequestPriority.Default; 56/// cref="CodeActionRequestPriority.Default"/> if not overridden. Slower, or less relevant, providers should 59public CodeActionRequestPriority RequestPriority 63var priority = ComputeRequestPriority(); 64Debug.Assert(priority is CodeActionRequestPriority.Low or CodeActionRequestPriority.Default or CodeActionRequestPriority.High, "Provider returned invalid priority");
CodeRefactorings\CodeRefactoringProvider.cs (12)
37/// Computes the <see cref="CodeActionRequestPriority"/> group this provider should be considered to run at. Legal values 38/// this can be must be between <see cref="CodeActionRequestPriority.Low"/> and <see cref="CodeActionPriority.High"/>. 42/// cref="CodeActionRequestPriority.High"/> may be downgraded to <see cref="CodeActionRequestPriority.Default"/> as they 45protected virtual CodeActionRequestPriority ComputeRequestPriority() 46=> CodeActionRequestPriority.Default; 50/// cref="CodeActionRequestPriority.Default"/> if not overridden. Slower, or less relevant, providers should 53public CodeActionRequestPriority RequestPriority 57var priority = ComputeRequestPriority(); 58Debug.Assert(priority is CodeActionRequestPriority.Low or CodeActionRequestPriority.Default or CodeActionRequestPriority.High, "Provider returned invalid priority");