Megosztás a következőn keresztül:


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:

  1. Very slow. Slow providers will impede computing results for other providers in the same priority class. So running in a lower one means that fast providers can still get their results to users quickly.
  2. Less relevant. Providers that commonly show available options, but those options are less likely to be taken, should run in lower priority groups. This helps ensure their items are still there when the user wants them, but aren't as prominently shown.
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