Class RefactorPrepareParams
Asks the language server what a refactoring of a document's range would ask its user, and what it would refuse or change, before it is applied
(rdcore/refactor/prepare).
public record RefactorPrepareParams : IEquatable<RefactorPrepareParams>
- Inheritance
-
RefactorPrepareParams
- Implements
- Derived
- Inherited Members
Remarks
Every refactoring is offered to any client as an LSP code action, which completes with its defaults and no dialog. A client that has a dialog of its own
expects the Refactoring capability, and asks for the choices first: it shows them, and applies the refactoring with its user's answers
(RefactorApplyParams). One pair of requests serves every refactoring; what a refactoring asks is described as data
(RefactorChoice).
Properties
Kind
Which refactoring: the kind of its code action (LSP 3.17 §Code Action Request), as the language server offers it.
public string Kind { get; init; }
Property Value
Range
The range of the document the refactoring is of: the selection, or the position of a name.
public SourceRange Range { get; init; }
Property Value
Uri
The address of the document.
public Uri? Uri { get; init; }