Virtual Method
LspServertext_document_did_open_async
Declaration
void
text_document_did_open_async (
LspServer* self,
LspClient* client,
LspTextDocumentItem* text_document,
GAsyncReadyCallback _callback_,
void* _callback__target
)
Description
The document open notification is sent from the client to the server to signal newly opened text documents.
The document’s content is now managed by the client and the server must not try to read the document’s content using the document’s Uri. Open in this sense means it is managed by the client. It doesn’t necessarily mean that its content is presented in an editor. An open notification must not be sent more than once without a corresponding close notification send before. This means open and close notification must be balanced and the max open count for a particular textDocument is one. Note that a server’s ability to fulfill requests is independent of whether a text document is open or closed.
Parameters
client-
Type:
LspClientNo description available.
The data is owned by the caller of the method. text_document-
Type:
LspTextDocumentItemNo description available.
The data is owned by the caller of the method. _callback_-
Type:
GAsyncReadyCallbackNo description available.
_callback__target-
Type:
void*No description available.
The argument can be NULL.The data is owned by the caller of the method.