Udostępnij za pośrednictwem


CodeActionRequestPriority Enum

Definition

Priority class that a particular CodeRefactoringProvider or CodeFixProvider should run at. Providers are run in priority order, allowing the results of higher priority providers to be computed and shown to the user without having to wait on, or share computing resources with, lower priority providers. Providers should choose lower priority classes if they are either:

public enum CodeActionRequestPriority
type CodeActionRequestPriority = 
Public Enum CodeActionRequestPriority
Inheritance
CodeActionRequestPriority

Fields

Name Value Description
Lowest 1

Only lowest priority suppression and configuration fix providers should be run. Specifically, Microsoft.CodeAnalysis.CodeFixes.IConfigurationFixProvider providers will be run. NOTE: This priority is reserved for suppression and configuration fix providers and should not be used by regular code fix providers and refactoring providers.

Low 2

Run the priority below Default priority. The provider may run slow, or its results may be commonly less relevant for the user.

Default 3

Run this provider at default priority. The provider will run in reasonable speeds and provide results that are commonly relevant to the user.

High 4

Run this provider at high priority. Note: High priority is simply a request on the part of a provider. The core engine may automatically downgrade these items to Default priority.

Applies to