Method

LspEditorcompletion_async

Declaration

void
lsp_editor_completion_async (
  LspEditor* self,
  GUri* uri,
  LspPosition* position,
  LspCompletionContext* context,
  GAsyncReadyCallback _callback_,
  void* _callback__target
)

Description

The completion request is sent from the client to the server to compute completion items at a given cursor position.

Parameters

uri

Type: GUri

The URI of the document for which completions are requested.

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

Type: LspPosition

The position at which completions are requested.

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

Type: LspCompletionContext

Additional context about the completion trigger, or null if not provided by the server.

The argument can be NULL.
The data is owned by the caller of the method.
_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.