Share via


LanguageServerProvider.CreateServerConnectionAsync(CancellationToken) Method

Definition

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.

Applies to