다음을 통해 공유


ILanguageClientDidOpenProvider.DidOpen Method

Definition

Intercepts calls for the 'textDocument/didOpen' notification.

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

Parameters

param
DidOpenTextDocumentParams

Parameter to be sent for the notification.

sendNotification
Func<DidOpenTextDocumentParams,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 request 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