Class RefactorIdentifierCheckParams
Asks the language server about an identifier the user is typing in answer to a refactoring's Name choice, before the
refactoring is applied (rdcore/refactor/checkIdentifier): whether it can be declared where the refactoring declares it, and what it would hide. It is
answered with the notices (RefactorIdentifierCheckResult), which a dialog shows beside the identifier as its user types it.
public record RefactorIdentifierCheckParams : IEquatable<RefactorIdentifierCheckParams>
- Inheritance
-
RefactorIdentifierCheckParams
- Implements
- Derived
- Inherited Members
Remarks
It applies nothing, and refuses nothing: an identifier the refactoring would refuse is answered a Refusal, which
rdcore/refactor/apply answers with an error when it is sent the same answers.
Properties
Answers
The user's answers, as rdcore/refactor/apply is sent them: the answer to each Name choice is an identifier
that is checked. A Name choice that is not answered, or is answered with nothing, is not checked.
public IReadOnlyList<RefactorAnswer> Answers { get; init; }
Property Value
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; }