Class RefactoringCommands
- Namespace
- RDCore.SDK.Semantics.Refactoring
- Assembly
- RDCore.SDK.Protocol.dll
The commands of the platform's code actions that a client runs itself (LSP 3.17 CodeAction.command): what only the client can do,
such as asking its user for a name.
public static class RefactoringCommands
- Inheritance
-
RefactoringCommands
- Inherited Members
Fields
Refactor
Applies a refactoring with the client's own dialog: the command of a refactoring's code action, offered to a client that expects the Refactoring capability. Its one argument is the refactoring's RefactorPrepareParams: the client sends it as RefactorPrepare, shows its user the choices and notices it is answered, shows beside each identifier its user types what RefactorCheckIdentifier says it raises, and sends RefactorApply with the user's answers, unless the user cancels, and applies the edit it is answered with.
public const string Refactor = "rdcore.refactor"
Field Value
Remarks
A client that does not expect the capability is offered the same code action with its edit, which the refactoring makes with its defaults.
Rename
Renames the symbol named at a position of a document, to a name the client asks its user for: the client asks, and sends textDocument/rename with
the name it is given, unless the user cancels. Its arguments are the URI of the document and the position (LSP 3.17 Position).
public const string Rename = "rdcore.rename"
Field Value
ShowReferences
Shows its user where a symbol is referred to: the command of a code lens that counts the references of a member (LSP 3.17
CodeLens.command). Its arguments are the URI of the document, the position of the member's name (LSP 3.17 Position), and the
references (LSP 3.17 Location[]): the arguments of VS Code's editor.action.showReferences.
public const string ShowReferences = "rdcore.showReferences"