class

LSProtocol::CompletionRequest

Inherits JSON::Serializable / Reference / Object

Request to request completion at a given text document position. The request's parameter is of type TextDocumentPosition the response is of type Array(CompletionItem) or CompletionList or a Thenable that resolves to such.

The request can delay the computation of the CompletionItem#detail and CompletionItem#documentation properties to the completionItem/resolve request. However, properties that are needed for the initial sorting and filtering, like sortText, filterText, insertText, and textEdit, must not be changed during resolve.

Constructors

new(id : Int32 | String, params : CompletionParams)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

id

The request id.

Source
jsonrpc
Source
method

The method to be invoked.

Source
params
Source