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: GUri

No description available.

The data is owned by the caller of the method.
language_id

Type: LspLanguageId

No description available.

text

Type: const gchar*

If non-null, this means that uri is associated with an in-memory buffer text.

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: GAsyncReadyCallback

No 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.