LanguageServerProvider.CreateServerConnectionAsync(CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This method is called by Visual Studio to notify the extension that the LSP server should be started.
public abstract System.Threading.Tasks.Task<System.IO.Pipelines.IDuplexPipe?> CreateServerConnectionAsync (System.Threading.CancellationToken cancellationToken);
abstract member CreateServerConnectionAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Pipelines.IDuplexPipe>
Public MustOverride Function CreateServerConnectionAsync (cancellationToken As CancellationToken) As Task(Of IDuplexPipe)
Parameters
- cancellationToken
- CancellationToken
Cancellation token for this asyncronous task.
Returns
A Nerdbank.Streams.DuplexPipe object used to communicate with the language server,
or null
if the language server could not be started.