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, bool)
Runs a server executable with command-line arguments mapping the specified LanguageClientSettings.
Task StartAsync(string relativePath, string pipeName, CancellationTokenSource tokenSource, bool hostMode = false)
Parameters
relativePathstringpipeNamestringtokenSourceCancellationTokenSourcehostModeboolWhen
true, setsRDCORE_MODE=hostin the child environment (rdc.exe runs as the environment host).
Returns
WaitForExitAsync()
Completes when the server process exits.
Task WaitForExitAsync()