ILanguageClient.OnServerInitializeFailedAsync Method

Definition

Overloads

OnServerInitializeFailedAsync(ILanguageClientInitializationInfo)

Signals the extension that the language server failed to initialize.

OnServerInitializeFailedAsync(Exception)

Signals the extension that the language server failed to initialize.

OnServerInitializeFailedAsync(ILanguageClientInitializationInfo)

Signals the extension that the language server failed to initialize.

public:
 System::Threading::Tasks::Task<Microsoft::VisualStudio::LanguageServer::Client::InitializationFailureContext ^> ^ OnServerInitializeFailedAsync(Microsoft::VisualStudio::LanguageServer::Client::ILanguageClientInitializationInfo ^ initializationState);
public System.Threading.Tasks.Task<Microsoft.VisualStudio.LanguageServer.Client.InitializationFailureContext?> OnServerInitializeFailedAsync (Microsoft.VisualStudio.LanguageServer.Client.ILanguageClientInitializationInfo initializationState);
abstract member OnServerInitializeFailedAsync : Microsoft.VisualStudio.LanguageServer.Client.ILanguageClientInitializationInfo -> System.Threading.Tasks.Task<Microsoft.VisualStudio.LanguageServer.Client.InitializationFailureContext>
Public Function OnServerInitializeFailedAsync (initializationState As ILanguageClientInitializationInfo) As Task(Of InitializationFailureContext)

Parameters

initializationState
ILanguageClientInitializationInfo

Object containing information about the point reached during initialization to help identify the source and whether this is a recoverable error.

Returns

Task<InitializationFailureContext>

A Task which completes when actions that need to be performed when the server fails to initialize are done and returns a InitializationFailureContext instance with the context of the failure for the specific language client. Can be null if the client wants to show the error in a different way.

Applies to

OnServerInitializeFailedAsync(Exception)

Signals the extension that the language server failed to initialize.

public:
 System::Threading::Tasks::Task ^ OnServerInitializeFailedAsync(Exception ^ e);
public System.Threading.Tasks.Task OnServerInitializeFailedAsync (Exception e);
abstract member OnServerInitializeFailedAsync : Exception -> System.Threading.Tasks.Task
Public Function OnServerInitializeFailedAsync (e As Exception) As Task

Parameters

e
Exception

The exception thrown by the server during initialization.

Returns

Task

A Task which completes when actions that need to be performed when the server fails to initialize are done.

Applies to