Class ServerCommands
- Namespace
- RDCore.SDK.Semantics.Refactoring
- Assembly
- RDCore.SDK.Protocol.dll
The commands the language server runs (LSP 3.17 workspace/executeCommand): a client that takes a code action of such a
command sends the command back as it is, with its arguments, and one that offers its user a command asks for it by its name. The commands a client
runs itself are RefactoringCommands.
public static class ServerCommands
- Inheritance
-
ServerCommands
- Inherited Members
Fields
ChangeProject
Changes the project of the workspace to fix a finding: makes the changes of a diagnostic's project fix (DiagnosticFixes.Project), writes the
project file, and loads the workspace it then lists. Its arguments are the URI of the document the diagnostic is in, and the project fix, as the
diagnostic's data writes it. It is the command of the quick fix of such a diagnostic.
public const string ChangeProject = "rdcore.changeProject"
Field Value
ImportIndenterSettings
Imports the indenter settings the user had in Rubberduck: the language server asks the client what it found
(rdcore/formatting/indenterSettings), and asks it to take the Formatting settings they map to as its own
(rdcore/formatting/indenterSettings/apply). It takes no argument, and is refused by a client that did not say it reads those settings.
public const string ImportIndenterSettings = "rdcore.importIndenterSettings"
Field Value
ImportProject
Imports a VB6 project: writes a .rdproj project file (ProjectFile) of the VB6 project in the folder of its
.vbp. Its one argument is the URI of the .vbp. It is the command of the ImportProject source action.
public const string ImportProject = "rdcore.importProject"