ILanguageClient.ActivateAsync(CancellationToken) Method

Definition

Activates the language server.

public:
 System::Threading::Tasks::Task<Microsoft::VisualStudio::LanguageServer::Client::Connection ^> ^ ActivateAsync(System::Threading::CancellationToken token);
public System.Threading.Tasks.Task<Microsoft.VisualStudio.LanguageServer.Client.Connection> ActivateAsync (System.Threading.CancellationToken token);
public System.Threading.Tasks.Task<Microsoft.VisualStudio.LanguageServer.Client.Connection?> ActivateAsync (System.Threading.CancellationToken token);
abstract member ActivateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.LanguageServer.Client.Connection>
Public Function ActivateAsync (token As CancellationToken) As Task(Of Connection)

Parameters

token
CancellationToken

Cancellation token.

Returns

A Connection object; or null if the language server cannot be started.

Remarks

This is the method that gets called with the language server needs to be activated. Any exceptions thrown here will be caught and displayed to users.

Applies to