Class Refactoring
Advertises that the language server says what a refactoring asks its user (rdcore/refactor/prepare), what an identifier the user is
typing raises (rdcore/refactor/checkIdentifier), and answers the edit it makes with the user's answers (rdcore/refactor/apply): the counterpart to LSP's own
codeAction/resolve for a client that shows a dialog of its own before a refactoring is applied.
public record Refactoring : CorePlatformClientCapability, IEquatable<CorePlatformClientCapability>, IEquatable<Refactoring>
- Inheritance
-
Refactoring
- Implements
- Inherited Members
Remarks
These requests serve every refactoring, whose choices are described as data. A client that does not expect the capability is offered the same refactorings as code actions, which complete with their defaults.
Constructors
Refactoring(bool)
Advertises that the language server says what a refactoring asks its user (rdcore/refactor/prepare), what an identifier the user is
typing raises (rdcore/refactor/checkIdentifier), and answers the edit it makes with the user's answers (rdcore/refactor/apply): the counterpart to LSP's own
codeAction/resolve for a client that shows a dialog of its own before a refactoring is applied.
public Refactoring(bool IsSupported = false)
Parameters
IsSupportedboolWhether the capability is expected, or provided.
Remarks
These requests serve every refactoring, whose choices are described as data. A client that does not expect the capability is offered the same refactorings as code actions, which complete with their defaults.