Interface IRDCoreServerProcess
Decouples the startup sequence from an actual Process boundary.
public interface IRDCoreServerProcess : IDisposable
- Inherited Members
Properties
ExitCode
The exit code of the process once it has exited; 0 otherwise.
int ExitCode { get; }
Property Value
HasExited
Whether the server process has exited (or was never started).
bool HasExited { get; }
Property Value
ProcessId
The operating-system identifier of the server process.
int ProcessId { get; }
Property Value
Methods
Shutdown()
Stops awaiting LSP server process exit to restart it.
void Shutdown()
Remarks
This method should be invoked during the Shutdown LSP server lifecycle handler.
StartAsync(string, string, CancellationTokenSource, string?)
Runs a server executable with command-line arguments mapping the specified LanguageClientSettings.
Task StartAsync(string relativePath, string pipeName, CancellationTokenSource tokenSource, string? mode = null)
Parameters
relativePathstringThe path of the server executable, relative to the platform root, with or without
.exe: a manifest written on Windows namesRDCore.ParseServer.exe, which isRDCore.ParseServerelsewhere. The executable is started as named when it is there, and in the other spelling otherwise. When neither is there, the start fails for the path as named.pipeNamestringThe name of the named pipe, passed to the server as
-n.tokenSourceCancellationTokenSourceThe caller's cancellation token source.
modestringThe mode
rdc.exeruns in, set asRDCORE_MODEin the child environment: HostMode for the environment host, ExternalMode for the external host; null for a server that is notrdc.exe.
Returns
WaitForExitAsync()
Completes when the server process exits.
Task WaitForExitAsync()