ILanguageServerProvider.InitializeAsync 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 before any other methods of this interface to initialize the ILanguageServerProvider and retreive the LanguageServerOptions.
public System.Threading.Tasks.Task<Microsoft.VisualStudio.RpcContracts.LanguageServerProvider.LanguageServerOptions> InitializeAsync(Microsoft.VisualStudio.RpcContracts.LanguageServerProvider.ILanguageServerProviderClient client, System.Threading.CancellationToken cancellationToken);
abstract member InitializeAsync : Microsoft.VisualStudio.RpcContracts.LanguageServerProvider.ILanguageServerProviderClient * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.RpcContracts.LanguageServerProvider.LanguageServerOptions>
Public Function InitializeAsync (client As ILanguageServerProviderClient, cancellationToken As CancellationToken) As Task(Of LanguageServerOptions)
Parameters
Language server provider client used by Visual Studio to enable or disable a language server.
- cancellationToken
- CancellationToken
Cancellation token for this asyncronous task.
Returns
An optional LanguageServerOptions that updates the server configuration.