ILanguageClient.OnServerInitializeFailedAsync 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.
Overloads
OnServerInitializeFailedAsync(ILanguageClientInitializationInfo) |
This method is called by Visual Studio to notify the extension that the initialization of the LSP server has failed. |
OnServerInitializeFailedAsync(Exception) |
Signals the extension that the language server failed to initialize. |
OnServerInitializeFailedAsync(ILanguageClientInitializationInfo)
This method is called by Visual Studio to notify the extension that the initialization of the LSP server has failed.
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
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
The exception thrown by the server during initialization.
Returns
A Task which completes when actions that need to be performed when the server fails to initialize are done.