CodeAction.ComputePriority Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Computes the CodeActionPriority group this code action should be presented in. Legal values this can be must be between Lowest and High.
protected virtual Microsoft.CodeAnalysis.CodeActions.CodeActionPriority ComputePriority ();
abstract member ComputePriority : unit -> Microsoft.CodeAnalysis.CodeActions.CodeActionPriority
override this.ComputePriority : unit -> Microsoft.CodeAnalysis.CodeActions.CodeActionPriority
Protected Overridable Function ComputePriority () As CodeActionPriority
Returns
Remarks
Values outside of this range will be clamped to be within that range. Requests for High may be downgraded to Default as they poorly behaving high-priority items can cause a negative user experience.
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.