struct

LSP::Message::Completion::Params

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(pull : JSON::PullParser)
Source
new(text_document : LSP::Data::TextDocumentIdentifier = Data::TextDocumentIdentifier.new, position : LSP::Data::Position = Data::Position.new, context : LSP::Data::CompletionContext | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

context

The completion context. This is only available if the client specifies to send this using ClientCapabilities.textDocument.completion.contextSupport === true

Source
context=(context : Data::CompletionContext | Nil)

The completion context. This is only available if the client specifies to send this using ClientCapabilities.textDocument.completion.contextSupport === true

Source
position

The position inside the text document.

Source
position=(position : Data::Position)

The position inside the text document.

Source
text_document

The text document.

Source
text_document=(text_document : Data::TextDocumentIdentifier)

The text document.

Source