completion_async


Description:

protected virtual async CompletionItem[]? completion_async (Client client, TextDocumentIdentifier text_document, Position position, CompletionContext? context) throws Error

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:

text_document

the document to provide completions for

position

the position inside the document for which completions are requested

context

additional context about how the completion was triggered

Returns:

a list of completion items, or null if there are none