Method
LspEditoropen_text_document_async
Declaration
void
lsp_editor_open_text_document_async (
LspEditor* self,
GUri* uri,
LspLanguageId language_id,
const gchar* text,
GAsyncReadyCallback _callback_,
void* _callback__target
)
Description
Opens a file, sending the textDocument/didOpen message to the language server. If the file is already open, this does nothing.
Parameters
uri-
Type:
GUriNo description available.
The data is owned by the caller of the method. language_id-
Type:
LspLanguageIdNo description available.
text-
Type:
const gchar*If non-null, this means that
uriis associated with an in-memory buffertext.The argument can be NULL.The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. _callback_-
Type:
GAsyncReadyCallbackNo description available.
The argument can be NULL. _callback__target-
Type:
void*No description available.
The argument can be NULL.The data is owned by the caller of the method.