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

Name Description
CodeRefactoringProvider()

Properties

Name Description
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

Name Description
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.

GetRefactorAllProvider()

Gets an optional RefactorAllProvider that can apply multiple occurrences of code refactoring(s) registered by this code refactoring provider across the supported RefactorAllScopes. Return null if the provider doesn't support the refactor all operation.

Applies to