requestCompletions method

Future<CompleteResult> requestCompletions(
  1. CompleteRequest request
)

Sends a request to get completions from the server.

Clients should debounce their calls to this API to avoid overloading the server.

You should check the protocolVersion before using this API, it must be

= ProtocolVersion.v2025_03_26.

Implementation

// TODO: Implement automatic debouncing.
Future<CompleteResult> requestCompletions(CompleteRequest request) =>
    sendRequest(CompleteRequest.methodName, request);