Share via


ILanguageClientDidSaveProvider.DidSave Method

Definition

Intercepts calls for the 'textDocument/didSave' notification.

public:
 System::Threading::Tasks::Task ^ DidSave(Microsoft::VisualStudio::LanguageServer::Protocol::DidSaveTextDocumentParams ^ param, Func<Microsoft::VisualStudio::LanguageServer::Protocol::DidSaveTextDocumentParams ^, System::Threading::Tasks::Task ^> ^ sendNotification);
public System.Threading.Tasks.Task DidSave (Microsoft.VisualStudio.LanguageServer.Protocol.DidSaveTextDocumentParams param, Func<Microsoft.VisualStudio.LanguageServer.Protocol.DidSaveTextDocumentParams,System.Threading.Tasks.Task> sendNotification);
abstract member DidSave : Microsoft.VisualStudio.LanguageServer.Protocol.DidSaveTextDocumentParams * Func<Microsoft.VisualStudio.LanguageServer.Protocol.DidSaveTextDocumentParams, System.Threading.Tasks.Task> -> System.Threading.Tasks.Task
Public Function DidSave (param As DidSaveTextDocumentParams, sendNotification As Func(Of DidSaveTextDocumentParams, Task)) As Task

Parameters

param
DidSaveTextDocumentParams

Parameter to be sent for the notification.

sendNotification
Func<DidSaveTextDocumentParams,Task>

Function delegate which will send the notification to the server. This delegate can be ignored and not invoked if the choice is to not send the notification to the server. it must be invoked in this method if the choice is to send the notification to the server.

Returns

A Task that complete once sthe command has been processed

Applies to