class LSProtocol::CompletionRequest

Overview

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.

Included Modules

Defined in:

lsprotocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(id : Int32 | String, params : CompletionParams) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def id : Int32 | String #

The request id.


[View source]
def jsonrpc : String #

[View source]
def method : String #

The method to be invoked.


[View source]
def params : CompletionParams #

[View source]