class LSProtocol::CompletionParams
- LSProtocol::CompletionParams
- Reference
- Object
Overview
Completion parameters
Included Modules
- JSON::Serializable
Defined in:
lsprotocol/types.crConstructors
- .new(position : Position | Nil, text_document : TextDocumentIdentifier | Nil, context : CompletionContext | Nil = nil, partial_result_token : ProgressToken | Nil = nil, work_done_token : ProgressToken | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#context : CompletionContext | Nil
The completion context.
-
#partial_result_token : ProgressToken | Nil
An optional token that a server can use to report partial results (e.g.
-
#position : Position
The position inside the text document.
-
#text_document : TextDocumentIdentifier
The text document.
-
#work_done_token : ProgressToken | Nil
An optional token that a server can use to report work done progress.
Constructor Detail
def self.new(position : Position | Nil, text_document : TextDocumentIdentifier | Nil, context : CompletionContext | Nil = nil, partial_result_token : ProgressToken | Nil = nil, work_done_token : ProgressToken | Nil = nil)
#
Instance Method Detail
def context : CompletionContext | Nil
#
The completion context. This is only available it the client specifies
to send this using the client capability textDocument.completion.contextSupport === true
def partial_result_token : ProgressToken | Nil
#
An optional token that a server can use to report partial results (e.g. streaming) to the client.
def work_done_token : ProgressToken | Nil
#
An optional token that a server can use to report work done progress.