Method

LspServercompletion_async

Declaration

void
lsp_server_completion_async (
  LspServer* self,
  LspClient* client,
  LspTextDocumentIdentifier* text_document,
  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.

Completion items are presented in the IntelliSense user interface. If computing full completion items is expensive, servers can additionally provide a handler for the completion item resolve request (‘completionItem/resolve’).

Parameters

client

Type: LspClient

No description available.

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

Type: LspTextDocumentIdentifier

The document to provide completions for.

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

Type: LspPosition

The position inside the document for which completions are requested.

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

Type: LspCompletionContext

Additional context about how the completion was triggered.

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.