Udostępnij za pośrednictwem


CodeRefactoringProvider Class

Definition

Inherit this type to provide source code refactorings. Remember to use ExportCodeRefactoringProviderAttribute so the host environment can offer your refactorings in a UI.

public ref class CodeRefactoringProvider abstract
public abstract class CodeRefactoringProvider
type CodeRefactoringProvider = class
Public MustInherit Class CodeRefactoringProvider
Inheritance
CodeRefactoringProvider

Constructors

CodeRefactoringProvider()

Properties

RequestPriority

Priority class this refactoring provider should run at. Returns Default if not overridden. Slower, or less relevant, providers should override this and return a lower value to not interfere with computation of normal priority providers.

Methods

ComputeRefactoringsAsync(CodeRefactoringContext)

Computes one or more refactorings for the specified CodeRefactoringContext.

ComputeRequestPriority()

Computes the CodeActionRequestPriority group this provider should be considered to run at. Legal values this can be must be between Low and High.

Applies to