ILanguageClientDidSaveProvider.DidSave 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.
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
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