class LanguageServer::Protocol::Interface::CompletionItem
def additional_text_edits
-
(TextEdit[])
-
def additional_text_edits attributes.fetch(:additionalTextEdits) end
def command
-
(Command)
-
def command attributes.fetch(:command) end
def commit_characters
-
(string[])
-
def commit_characters attributes.fetch(:commitCharacters) end
def data
-
(LSPAny)
-
def data attributes.fetch(:data) end
def deprecated
-
(boolean)
-
def deprecated attributes.fetch(:deprecated) end
def detail
-
(string)
-
def detail attributes.fetch(:detail) end
def documentation
-
(string | MarkupContent)
-
def documentation attributes.fetch(:documentation) end
def filter_text
-
(string)
-
def filter_text attributes.fetch(:filterText) end
def initialize(label:, label_details: nil, kind: nil, tags: nil, detail: nil, documentation: nil, deprecated: nil, preselect: nil, sort_text: nil, filter_text: nil, insert_text: nil, insert_text_format: nil, insert_text_mode: nil, text_edit: nil, text_edit_text: nil, additional_text_edits: nil, commit_characters: nil, command: nil, data: nil)
def initialize(label:, label_details: nil, kind: nil, tags: nil, detail: nil, documentation: nil, deprecated: nil, preselect: nil, sort_text: nil, filter_text: nil, insert_text: nil, insert_text_format: nil, insert_text_mode: nil, text_edit: nil, text_edit_text: nil, additional_text_edits: nil, commit_characters: nil, command: nil, data: nil) @attributes = {} @attributes[:label] = label @attributes[:labelDetails] = label_details if label_details @attributes[:kind] = kind if kind @attributes[:tags] = tags if tags @attributes[:detail] = detail if detail @attributes[:documentation] = documentation if documentation @attributes[:deprecated] = deprecated if deprecated @attributes[:preselect] = preselect if preselect @attributes[:sortText] = sort_text if sort_text @attributes[:filterText] = filter_text if filter_text @attributes[:insertText] = insert_text if insert_text @attributes[:insertTextFormat] = insert_text_format if insert_text_format @attributes[:insertTextMode] = insert_text_mode if insert_text_mode @attributes[:textEdit] = text_edit if text_edit @attributes[:textEditText] = text_edit_text if text_edit_text @attributes[:additionalTextEdits] = additional_text_edits if additional_text_edits @attributes[:commitCharacters] = commit_characters if commit_characters @attributes[:command] = command if command @attributes[:data] = data if data @attributes.freeze end
def insert_text
-
(string)
-
def insert_text attributes.fetch(:insertText) end
def insert_text_format
-
(InsertTextFormat)
-
def insert_text_format attributes.fetch(:insertTextFormat) end
def insert_text_mode
-
(InsertTextMode)
-
def insert_text_mode attributes.fetch(:insertTextMode) end
def kind
-
(CompletionItemKind)
-
def kind attributes.fetch(:kind) end
def label
-
(string)
-
def label attributes.fetch(:label) end
def label_details
-
(CompletionItemLabelDetails)
-
def label_details attributes.fetch(:labelDetails) end
def preselect
-
(boolean)
-
def preselect attributes.fetch(:preselect) end
def sort_text
-
(string)
-
def sort_text attributes.fetch(:sortText) end
def tags
-
(1[])
-
def tags attributes.fetch(:tags) end
def text_edit
-
(TextEdit | InsertReplaceEdit)
-
def text_edit attributes.fetch(:textEdit) end
def text_edit_text
-
(string)
-
def text_edit_text attributes.fetch(:textEditText) end
def to_hash
def to_hash attributes end
def to_json(*args)
def to_json(*args) to_hash.to_json(*args) end