ILanguageClient.ActivateAsync(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.
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.