共用方式為


ILanguageClientDidChangeProvider.DidChange Method

Definition

Intercepts calls for the 'textDocument/didChange' request.

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

Parameters

param
DidChangeTextDocumentParams

Parameter to be sent for the request.

sendNotification
Func<DidChangeTextDocumentParams,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