共用方式為


ILanguageClientDidCloseProvider.DidClose Method

Definition

Intercepts calls for the 'textDocument/didClose' notification.

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

Parameters

param
DidCloseTextDocumentParams

Parameter to be sent for the notification.

sendNotification
Func<DidCloseTextDocumentParams,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 completes once the command has been processed

Applies to