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:
LspClientNo description available.
The data is owned by the caller of the method. text_document-
Type:
LspTextDocumentIdentifierThe document to provide completions for.
The data is owned by the caller of the method. position-
Type:
LspPositionThe position inside the document for which completions are requested.
The data is owned by the caller of the method. context-
Type:
LspCompletionContextAdditional context about how the completion was triggered.
The argument can be NULL.The data is owned by the caller of the method. _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.